コード例 #1
0
ファイル: Player.cs プロジェクト: johnpvar/Ninja-Playground
 public void PlayerRole()
 {
     if (myPerson.Role == 1)
     {
         myPerson.GetComponent <Hunter>().CurrentPray = myPerson.GetComponent <Hunter>().PickPray();
         if (myPerson.GetComponent <Hunter>().CurrentPray == null)
         {
             return;
         }
         myPerson.GetComponent <Hunter>().TryToEat();
     }
 }