// Use this for initialization void Start() { ActiveBombs = new List <GameObject> (); NoPlaceToSpawnBomb = false; cooldown = 0f; UIControls = GameObject.Find("UI Canvas").GetComponent <InGameUIScript> (); }
// Use this for initialization void Start() { Alive = true; audioSource = GetComponent <AudioSource> (); soundManager = SoundManager.GetSoundManager(); soundManager.RegisterPlayer(audioSource, gameObject.transform); UIControls = GameObject.Find("UI Canvas").GetComponent <InGameUIScript> (); controller = GetComponent <CharacterController> (); if (controller == null) { Debug.LogWarning("Controller"); } }
// Use this for initialization void Start() { facingRight = true; inGameUIScript = gameObject.GetComponent <InGameUIScript>(); deathAnim.Pause(); }
void Awake() { instance = this.gameObject.GetComponent <InGameUIScript>(); }
private void Start() { uiScript = GetComponent <InGameUIScript>(); }