private void Start() { controller = Player.GetComponent <MovingController>(); if (fire.GetComponent <MainFire>()) { fireBuild = fire.GetComponent <MainFire>(); } fireAudi = fire.GetComponent <AudioSource>(); }
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>(); }