// Start is called before the first frame update void Start() { rigidBody = GetComponent <Rigidbody>(); skinController = GetComponent <CharacterSkinController>(); animator = GetComponent <Animator>(); soundsPlayer = transform.Find("Sounds").GetComponent <SoundsPlayer>(); }
void Awake() { camera = GameObject.Find("Main Camera").gameObject; playerName = transform.Find("Canvas").Find("Name").GetComponent <TextMeshProUGUI>(); skinController = GetComponent <CharacterSkinController>(); animator = GetComponent <Animator>(); rigidBody = GetComponent <Rigidbody>(); soundsPlayer = transform.Find("Sounds").GetComponent <SoundsPlayer>(); }
private void Awake() { _instance = this; }