private void RacketWidthChange() { // Событие?? racket.RacketWidth *= 1.5f; racket.GetComponent <Transform>().localScale = new Vector3(racket.RacketWidth, 0.5f, 1f); Debug.Log("Racket wided!"); }
private void Awake() { gameManager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GameManager>(); racket = GameObject.FindGameObjectWithTag("Racket").GetComponent <Racket>(); racketTransform = racket.GetComponent <Transform>(); bonusTransform = GetComponent <Transform>(); }