void Start() { characterSounds = GetComponentInChildren <CharacterSounds>(); _characterInput = GetComponent <PlatformerCharacter2D>(); if (IsPlayer) { respawner = GetComponent <PlayerRespawner>(); } if (SpawnUponDeath != null) { spawnUponDeathScale = this.transform.localScale; } }
void Start() { player = GetComponentInParent <PlatformerCharacter2D>(); playerSounds = GetComponent <CharacterSounds>(); }