public void StartFlashing() { dropInFlash = new FlashingElement(AISpawnInFlashTime, true, FlashingElement.FlashingElement_OperationType.FlashingElement_OperationType_Normal); flashing = true; }
public override void EnteringNewState(HackGameAgent.HackGameAgent_State oldState, HackGameAgent.HackGameAgent_State newState) { if (newState == HackGameAgent_State.HackGameAgent_State_SpawningIn && oldState == HackGameAgent_State.HackGameAgent_State_Inactive) { spawnInData = new HackGameAgent_AI_StateData_SpawningIn(); } if (newState == HackGameAgent_State.HackGameAgent_State_Active) { collapseTimer = new HackGameTimer(collapseTimeSeconds); activeFlasher = new FlashingElement(0.3f, true, FlashingElement.FlashingElement_OperationType.FlashingElement_OperationType_Normal); timerString = new StringBuilder(); UpdateTimerString(); } }
public HackGameAgent_Player_StateData_ExitingOut() { flyOutFlash = new FlashingElement(playerExitOutFlashTime, true, FlashingElement.FlashingElement_OperationType.FlashingElement_OperationType_Normal); flashTimer = new HackGameTimer(playerExitOutTotalFlashTime); totalTimer = playerExitOutTotalTime; Starting = true; }