Beispiel #1
0
        public static Monster Create(long id)
        {
            Monster          enemy          = ComponentFactory.CreateWithId <Monster>(id);
            MonsterComponent enemyComponent = Game.Scene.GetComponent <MonsterComponent>();

            enemyComponent.Add(enemy);
            return(enemy);
        }
Beispiel #2
0
 public override void Dispose()
 {
     base.Dispose();
     Instance = null;
 }
Beispiel #3
0
 public override void Awake()
 {
     base.Awake();
     Instance = this;
 }