Ejemplo n.º 1
0
 void Awake()
 {
     Instance      = this;
     foodIncubator = GetComponent <FoodIncubator> ();
     //获取当前场景
     _checkpoint = SceneManager.GetActiveScene().buildIndex;
 }
 //private Coroutine _coroutine;
 // Use this for initialization
 void Start()
 {
     _foodIncubator = this;
     StartCoroutine("IncubatorFood");
 }