コード例 #1
0
    private static int sm_iSpawnQueueCount = 0;                                                                         // This is used in conjunction with the Current Enemy Count to see how many additional enemies need to be spawned


    // Use this for initialization
    void Start()
    {
        m_ttSpawnCooldownTimer = new TimeTracker(GetSpawnCooldownTime());
        m_ttSpawnCooldownTimer.ForceTimerFinish();

        m_lgoSpawnObjects = new List <GameObject>();
    }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* New Method: Force Finish
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 public void ForceFinish(bool reversedFinish = false)
 {
     m_ttTimer.ForceTimerFinish();
     if (reversedFinish)
     {
         ShowFirstFrame();
     }
     else
     {
         ShowLastFrame();
     }
 }