예제 #1
0
    // Start is called before the first frame update
    void Awake()
    {
        MaxKeyNum = FindObjectsOfType <Key>().Length;
        KeyNum    = 0;

        OnCollectKey += (() => SetKeyNum());
    }
예제 #2
0
 private void OnDisable()
 {
     OnCollectKey = null;
 }