public GameObject LoadEnemy(string _name) { GameObject result; if (!enemys.TryGetValue(_name, out result)) { result = factory.LoadEnemy(_name); enemys.Add(_name, result); return(result); } return(InstantiateGameObject(result)); }
public GameObject LoadEnemy(string _name) { GameObject result; if (!enemys.TryGetValue(_name, out result)) { result = factory.LoadEnemy(_name); enemys.Add(_name, result); return(result); } return(InstantiateGameObject(result)); }