Exemple #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);
        }
Exemple #2
0
 public override void Dispose()
 {
     base.Dispose();
     Instance = null;
 }
Exemple #3
0
 public override void Awake()
 {
     base.Awake();
     Instance = this;
 }