コード例 #1
0
 void Awake()
 {
     sPrivateInstance = this;
     if (!isNotesSetUp)
     {
         fSetupNotes();
     }
 }
コード例 #2
0
    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();
        }
    }