Пример #1
0
 public Soul(Player player)
 {
     this.player = player;
 }
Пример #2
0
 public void RegisterPlayer(Player player)
 {
     this.player = player;
 }
Пример #3
0
        private GameObject Instantiate(GameObjectFileData objData)
        {
            switch (objData.ObjectType)
            {
                case "SoulTrader.Player":
                    player = new Player(camera, objData.GraphicName, objData.Position, objData.Scale);
                    return player;
                case "SoulTrader.Obstacle":
                    return new Obstacle(objData.GraphicName, objData.Position, objData.Scale);
                case "SoulTrader.KillZone":
                    return new KillZone(objData.GraphicName, objData.Position, objData.Scale);
            }

            return new GameObject(objData.GraphicName, objData.Position, objData.Scale);
        }