Exemplo n.º 1
0
    void Start()
    {
        TimeLeft = StageLength;

        if (onStageCreated != null)
            onStageCreated(this);

        if (onBossBattleEnds != null)
            onBossBattleEnds();

        Debug.LogWarning("BOSS BATTLE DISABLED IN STAGE CONTROLER STARTUP!!! DO NOT FORGET YOU FOOL!");
        BossBattleLength = 0.1f;

        _bossDefeated = true;

        if (portalControler == null)
            portalControler = FindObjectOfType<PortalControler>();

        if (PlayerDeathAnimationControler == null)
            PlayerDeathAnimationControler = FindObjectOfType<PlayerDeath>();
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     anim = gameObject.GetComponent<Animation>();
     r1 = backpack.GetComponent<SkinnedMeshRenderer>();
     r2 = fullMax.GetComponent<SkinnedMeshRenderer>();
     invisibilityDelay = 0;
     invisibilityPeriod = 3;
     pd = gameObject.GetComponent <PlayerDeath> ();
 }
Exemplo n.º 3
0
 void Awake()
 {
     _playerHealth = GetComponent<PlayerHealth>();
     _playerDeath = GetComponent<PlayerDeath>();
     _playerRespawn = FindObjectOfType<PlayerRespawn>();
 }