void Awake() { _ufoFactory = UFOFactoryBase.GetFactory(); _ufoFactory.UFOPrefab = ufoPrefab; }
public static UFOFactoryBase GetFactory() { return(ufoFactory ?? (ufoFactory = new UFOFactoryBase())); }