void Awake() { sPrivateInstance = this; if (!isNotesSetUp) { fSetupNotes(); } }
private static void sfCreatePool() { GameObject lPool = GameObject.Instantiate(Resources.Load("Prefab/SystemPool/SoundPool") as GameObject) as GameObject; sPrivateInstance = lPool.GetComponent <SoundPoolController>(); if (!sPrivateInstance.isNotesSetUp) { sPrivateInstance.fSetupNotes(); } }