Example #1
0
        protected override void OnInitialize()
        {
            ShieldAmount          = MaxShield;
            timeUntilRegeneration = 0;

            shieldedHealths.FastClear();
        }
 protected override void OnInitialize()
 {
     IsPlayingBack = ReplayManager.IsPlayingBack;
     if (!IsPlayingBack)
     {
         Hashes.FastClear();
     }
 }
Example #3
0
 public static void Initialize()
 {
     ActivatedNodes.FastClear();
     for (int i = AllocatedNodes.Count - 1; i >= 0; i--)
     {
         AllocatedNodes[i].Reset();
     }
 }
Example #4
0
 public static void Initialize()
 {
     ActivatedNodes.FastClear();
     for (int i = 0; i < Count * Count; i++)
     {
         Nodes[i].Initialize();
     }
 }
Example #5
0
        public static void Initialize(SelectionSetting selSetting = SelectionSetting.PC_RTS)
        {
            AgentControllers.FastClear();
            selectionSetting = selSetting;

            OrderMarker = GameObject.Instantiate(instance._orderMarker).GetComponent <Marker> ();

            InterfaceManager.Initialize();
        }
Example #6
0
 public static void Clear()
 {
     for (int i = 0; i < PlayerManager.AgentControllerCount; i++)
     {
         FastBucket <LSAgent> selectedAgents = PlayerManager.AgentControllers[i].SelectedAgents;
         for (int j = 0; j < selectedAgents.PeakCount; j++)
         {
             if (selectedAgents.arrayAllocation[j])
             {
                 selectedAgents[j].IsSelected = false;
             }
         }
         selectedAgents.FastClear();
     }
     MainSelectedAgent = null;
 }
        static void ResetVars()
        {
            for (int i = 0; i < PeakCount; i++)
            {
                SimObjects[i] = null;
            }
            DynamicSimObjects.FastClear();
            Raycaster._Version = 0;
            PeakCount          = 0;
            CachedIDs.FastClear();

            CollisionPair.CurrentCollisionPair = null;

            PeakCount        = 0;
            AssimilatedCount = 0;

            Partition.Initialize();
            RanCollisionPairs.FastClear();
            InactiveCollisionPairs.FastClear();
        }
        public static void Deactivate()
        {
            for (int i = 0; i < PeakGlobalID; i++)
            {
                if (GlobalAgentActive [i])
                {
                    DestroyAgent(GlobalAgents [i], true);
                }
            }
            CheckDestroyAgent();

            for (int i = 0; i < DeathingAgents.PeakCount; i++)
            {
                if (DeathingAgents.arrayAllocation [i])
                {
                    LSAgent agent = DeathingAgents [i];
                    agent.Pool();
                }
            }
            DeathingAgents.FastClear();
        }
 public static void Initialize()
 {
     MainController = null;
     AgentControllers.FastClear();
 }
Example #10
0
 protected override void OnInitialize()
 {
     activeGroups.FastClear();
 }
Example #11
0
 public static void Initialize()
 {
     AgentControllers.FastClear();
 }
 protected override void OnInitialize()
 {
     Instance = this;
     activeGroups.FastClear();
 }
 public void Initialize()
 {
     ContainedObjects.FastClear();
 }