Пример #1
0
 public void StartFlashing()
 {
     dropInFlash = new FlashingElement(AISpawnInFlashTime, true, FlashingElement.FlashingElement_OperationType.FlashingElement_OperationType_Normal);
     flashing = true;
 }
Пример #2
0
        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();
            }
        }
Пример #3
0
 public HackGameAgent_Player_StateData_ExitingOut()
 {
     flyOutFlash = new FlashingElement(playerExitOutFlashTime, true, FlashingElement.FlashingElement_OperationType.FlashingElement_OperationType_Normal);
     flashTimer = new HackGameTimer(playerExitOutTotalFlashTime);
     totalTimer = playerExitOutTotalTime;
     Starting = true;
 }