Example #1
0
 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;
 }
Example #2
0
    private void Awake()
    {
        if (Instance != null && Instance != this)
        {
            Destroy(gameObject);
        }
        else
        {
            Instance = this;
        }

        getMenuInfoScript = GetMenuInformation.Instance;
    }
Example #3
0
 // Start is called before the first frame update
 void Awake()
 {
     _menuManagerScript = GameObject.FindWithTag("GameController").GetComponent <MenuPlayerManager>();
 }