コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Alpha1))
     {
         player.SetSkill(1);
         _rend.sprite = activeWheels[0];
         _rend.flipX  = false;
     }
     else if (Input.GetKeyDown(KeyCode.Alpha2))
     {
         player.SetSkill(2);
         _rend.sprite = activeWheels[1];
         _rend.flipX  = false;
     }
     else if (Input.GetKeyDown(KeyCode.Alpha3))
     {
         player.SetSkill(3);
         _rend.sprite = activeWheels[2];
         _rend.flipX  = false;
     }
 }