示例#1
0
    // Use this for initialization
    void Start()
    {
        ActiveBombs = new List <GameObject> ();

        NoPlaceToSpawnBomb = false;
        cooldown           = 0f;

        UIControls = GameObject.Find("UI Canvas").GetComponent <InGameUIScript> ();
    }
示例#2
0
    // 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");
        }
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     facingRight    = true;
     inGameUIScript = gameObject.GetComponent <InGameUIScript>();
     deathAnim.Pause();
 }
 void Awake()
 {
     instance = this.gameObject.GetComponent <InGameUIScript>();
 }
示例#5
0
 private void Start()
 {
     uiScript = GetComponent <InGameUIScript>();
 }