예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     rb           = GetComponent <Rigidbody2D> ();
     gunner       = GameObject.Find("Gunner");
     gunnerScript = gunner.GetComponent <GunnerMovement> ();
     text         = GameObject.Find("Text");
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     Background   = GameObject.Find("Background");
     scrollScript = Background.GetComponent <ScrollBg> ();
     gunner       = GameObject.Find("Gunner");
     gunnerScript = gunner.GetComponent <GunnerMovement> ();
     gameOverBg   = GameObject.Find("GameOverBg");
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     gunner       = GameObject.Find("Gunner");
     gunnerScript = gunner.GetComponent <GunnerMovement> ();
     StartCoroutine(ZombieSpawn());
 }