コード例 #1
0
ファイル: EnemyMovment.cs プロジェクト: PeimanAtaei/Towers
 void Start()
 {
     wavespawn = WaveSpawne.instance;
     enemy     = GetComponent <Enemy> ();
     target    = WayPointsSc.points[0];
     healthUi  = HealthUi.instance;
 }
コード例 #2
0
 void Awake()
 {
     if (instance != null)
     {
         //Debug.Log ("More Thane 1 instance");
         return;
     }
     instance = this;
 }
コード例 #3
0
 private void BindInstance()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }