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