コード例 #1
0
ファイル: PropulsionManager.cs プロジェクト: weichx/SpaceGame
        private void OnEntityArrived(Evt_EntityArrived evt)
        {
            int idx = arrivals.FindIndex((arrival) => arrival.entityId == evt.entityId);

            if (idx >= 0)
            {
                arrivals.RemoveAt(idx);
            }
            actives.Add(evt.entityId);
        }
コード例 #2
0
ファイル: HyperspaceManager.cs プロジェクト: weichx/SpaceGame
        private void OnEntityArrived(Evt_EntityArrived evt)
        {
            Debug.Log("Entity Arrived");
            int idx = arrivals.FindIndex((a) => a.entityId == evt.entityId);

            if (idx >= 0)
            {
                arrivals.RemoveAt(idx);
            }
        }