LoadFacebookInOtherScene.cs 334 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using System.Collections;
  3. public class LoadFacebookInOtherScene : MonoBehaviour {
  4. // Use this for initialization
  5. void Start () {
  6. StartCoroutine(UnloadResourceE());
  7. }
  8. public IEnumerator UnloadResourceE()
  9. {
  10. yield return Resources.UnloadUnusedAssets();
  11. FacebookHelper.Instance.LogIn();
  12. }
  13. }