private void Awake() { _playerManagerScript = GameObject.FindWithTag("GameController").GetComponent <MenuPlayerManager>(); _animator = GetComponent <Animator>(); _audioSource = GetComponent <AudioSource>(); _trailRenderer = GetComponent <TrailRenderer>(); _myRb = GetComponent <Rigidbody2D>(); _particuleContact = this.transform.GetChild(1).gameObject; _newSoundManagerScript = NewSoundManager.instance; }
private void Awake() { if (Instance != null && Instance != this) { Destroy(gameObject); } else { Instance = this; } getMenuInfoScript = GetMenuInformation.Instance; }
// Start is called before the first frame update void Awake() { _menuManagerScript = GameObject.FindWithTag("GameController").GetComponent <MenuPlayerManager>(); }