Esempio n. 1
0
        // 初期化時
        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];
        }
Esempio n. 2
0
 // 破棄時の処理
 private void OnDestroy()
 {
     instance = null;
 }