public override void applicationRunOnceOnBuilding() { base.applicationRunOnceOnBuilding(); //fbx { GameObject obj = new GameObject(); obj.transform.parent = this.transform; _fbxPool = obj.AddComponent <CC3SpriteFactory> (); } }
public virtual void Awake() { if (Application.isPlaying) { if (_Instance != null && _Instance != this) { Destroy(this.gameObject); return; } else { _Instance = this; } } if (firstPassFlag) { gameObject.transform.position = Vector3.zero; gameObject.name = "CC3SpriteFactory"; firstPassFlag = false; } }