示例#1
0
    //remove permanently or until specified time
    public override void DestroyObj(GameObject obj)
    {
        //Default behavior

        ToLoad.Remove(obj.GetComponent <SpawnObject>().GetMyOrigin());
        removeObj(obj);
    }
示例#2
0
        public void FinishedLoading(Player player)
        {
            var start = false;

            lock (ToLoad)
            {
                ToLoad.Remove(player);
                if (ToLoad.Count == 0)
                {
                    start = true;
                }
            }
            if (start)
            {
                StartGameLoop();
            }
        }