private void StartBattle() { state = State.Active; if (doorAnims != null) { doorAnims.SetColor(DoorAnims.ColorName.Red); doorAnims.CloseDoor(); } OnBattleStarted?.Invoke(this, EventArgs.Empty); }
private void Start() { FunctionTimer.Create(() => { entranceDoorAnims.SetColor(DoorAnims.ColorName.Green); }, 3.0f); FunctionTimer.Create(() => { entranceDoorAnims.OpenDoor(); }, 3.5f); CinematicBars.Show_Static(150f, .01f); FunctionTimer.Create(() => { CinematicBars.Show_Static(0f, .5f); }, 3f); }
private void StartBattle() { // Enable Turret Targeting enemyTurret.GetComponent <EnemyTargeting>().enabled = true; SpawnEnemy(); SpawnEnemy(); entryDoorAnims.SetColor(DoorAnims.ColorName.Red); entryDoorAnims.CloseDoor(); }
private void Start() { DoorAnims doorAnims = GetComponent <DoorAnims>(); if (startOpen) { doorAnims.OpenDoor(); } else { doorAnims.CloseDoor(); } doorAnims.SetColor(doorColor); }
private void BossBattle_OnBossBattleStarted(object sender, System.EventArgs e) { entryDoor.CloseDoor(); entryDoor.SetColor(DoorAnims.ColorName.Red); }
private void DoorOpenTrigger_OnPlayerTriggerEnter2D(object sender, System.EventArgs e) { doorAnims.SetColor(DoorAnims.ColorName.Green); doorAnims.OpenDoor(); captureOnTriggerEnter2D.OnPlayerTriggerEnter2D -= DoorOpenTrigger_OnPlayerTriggerEnter2D; }
private void BattleSystem_OnBattleOver(object sender, System.EventArgs e) { exitDoor.OpenDoor(); exitDoor.SetColor(DoorAnims.ColorName.Green); }