// 初期化時 void Awake() { instance = this; this.keys = new KeyCode[] { KeyCode.Alpha1, KeyCode.Alpha2, KeyCode.Alpha3, KeyCode.Alpha4, KeyCode.Alpha5, }; this.SetupCallback(); this.buttonClickedBuffer = new bool[buttons.Length]; }
// 破棄時の処理 private void OnDestroy() { instance = null; }