public void KickForward(bool shouldAdjustPosition) { LaneAppear.shouldShowLanes = false; LaneAppear.HideAllLanes(); tutorial.DisableHelpGUI(); StopMoving(); ResetCamera(true, shouldAdjustPosition); StartCoroutine(KickBallForward()); }
private void OnTriggerEnter(Collider other) { if (other.GetComponent <OutsideGroupSoccerAnimation>() != null) { LaneAppear.shouldShowLanes = false; LaneAppear.HideAllLanes(); ballMissManager.SetBallPreviousPosition(); var ballMissAudio = transform.parent.GetComponent <AudioSource>(); other.GetComponent <OutsideGroupSoccerAnimation>().StopMoving(); other.GetComponent <OutsideGroupSoccerAnimation>().ResetCamera(true, false); other.GetComponent <OutsideGroupSoccerAnimation>().ResetPosition(ballMissAudio); } }