コード例 #1
0
ファイル: KeyControl.cs プロジェクト: muripoLife/AnimeSound
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Z))
     {
         KeyObjManager.GetInstance().NearKeyOK("Z");
     }
     else if (Input.GetKeyDown(KeyCode.X))
     {
         KeyObjManager.GetInstance().NearKeyOK("X");
     }
     else if (Input.GetKeyDown(KeyCode.C))
     {
         KeyObjManager.GetInstance().NearKeyOK("C");
     }
 }
コード例 #2
0
 void Start()
 {
     instance = this;
     KeyObjDatas = new KeyObj[40];
 }
コード例 #3
0
 void Start()
 {
     instance    = this;
     KeyObjDatas = new KeyObj[40];
 }