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>(); }
// 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> (); }
void Awake() { _playerHealth = GetComponent<PlayerHealth>(); _playerDeath = GetComponent<PlayerDeath>(); _playerRespawn = FindObjectOfType<PlayerRespawn>(); }