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