void Start() { //actualStage = BossStage.ENTERING; mm = GameObject.Find("Managers").GetComponent <MapManger>(); lerpTime = 0.0f; fbs = GetComponentInChildren <FirstBossStage>(); sbs = GetComponentInChildren <SecondBossStage>(); initialPos = transform.position; }
// Use this for initialization void Start() { sbs = transform.parent.parent.GetComponent <SecondBossStage>(); audioSource = GetComponent <AudioSource>(); lifeCounter = life; weakpointReviveCounter = timeToWeakpointRevive; weakpointTimeRestartCounter = timeBeforeWeakpointRestart; revivingWeakpoint = false; flicker = false; flickerCounter = flickerTime; invul = true; }