public static Monster Create(long id) { Monster enemy = ComponentFactory.CreateWithId <Monster>(id); MonsterComponent enemyComponent = Game.Scene.GetComponent <MonsterComponent>(); enemyComponent.Add(enemy); return(enemy); }
public override void Dispose() { base.Dispose(); Instance = null; }
public override void Awake() { base.Awake(); Instance = this; }