/// <summary> /// the method /// </summary> public void ResettingBall() { ResetBall resetBall = ResettingTheBall; if (resetBall != null) { ResettingTheBall(); } }
void Start() { oldCameraPosition = transform.position; resetScript = GameObject.Find("ScriptObject").GetComponent<ResetBall>(); tutorialScreen.SetActive(false); if (SceneManager.GetActiveScene().name == "DiscoveryClub") { finishedTutorial = false; } }
void Start() { //Initialize value IsFirstHit = new Stack <bool>(); anim = GetComponent <Animator>(); correctPos = new List <Vector3>(); checkPos = new List <Vector3>(); upperValue = 0; lowerValue = 0; GameObject resetBallObject = GameObject.FindWithTag("ResetTable"); if (resetBallObject != null) { resetBall = resetBallObject.GetComponent <ResetBall>(); } if (resetBallObject == null) { Debug.Log("Cannot find 'ResetBall' script"); } ResetState(); }