コード例 #1
0
 public void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.tag.Equals("Player"))
     {
         if (Time.time > throwTimeDeltaNeededForPickup + throwTime)
         {
             if (PlayerStateController.instance.CurrentState == CliqueEnum.JOCK)
             {
                 PlayerController player = PlayerController.instance;
                 player.hasBall = true;
                 football.OnPickUp();
             }
         }
     }
 }