Exemple #1
0
 private void Start()
 {
     controller = Player.GetComponent <MovingController>();
     if (fire.GetComponent <MainFire>())
     {
         fireBuild = fire.GetComponent <MainFire>();
     }
     fireAudi = fire.GetComponent <AudioSource>();
 }
Exemple #2
0
 private void Start()
 {
     earthpony = GetComponent <Earthpony>();
     if (!fire)
     {
         fire = GameObject.FindGameObjectWithTag("MainFire").GetComponent <MainFire>();
     }
     if (!Player)
     {
         Player = GameObject.FindGameObjectWithTag("Player").GetComponent <MovingController>();
     }
 }
 private void Start()
 {
     mainFire = GetComponent <MainFire>();
 }