Пример #1
0
 // Use this for initialization
 void Start()
 {
     Pooled_Enemy1 = new Queue <GameObject>(MAX_POOLED_ENEMY1);
     Pooled_Enemy2 = new Queue <GameObject>(MAX_POOLED_ENEMY2);
     Pooled_Enemy3 = new Queue <GameObject>(MAX_POOLED_ENEMY3);
     Enemy_Load();
     Count = GameObject.Find("Level Control").GetComponent <Level_Control>();
     Score = GameObject.Find("ScoreGUI").GetComponent <ScoreGUI>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     DontDestroyOnLoad(transform.gameObject);
     rb2d        = GetComponent <Rigidbody2D>();
     level       = GameObject.Find("Level Control").GetComponent <Level_Control>();
     level.Alive = true;
     Score       = GameObject.Find("ScoreGUI").GetComponent <ScoreGUI>();
     //rb2d 값에 물리엔진을 대입
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     Enemy = GameObject.Find("Level Control").GetComponent <Enemy_Pool>();
     Count = GameObject.Find("Level Control").GetComponent <Level_Control>();
 }