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(); } } } }