Exemplo n.º 1
0
        void Start()
        {
            characterSounds = GetComponentInChildren <CharacterSounds>();
            _characterInput = GetComponent <PlatformerCharacter2D>();

            if (IsPlayer)
            {
                respawner = GetComponent <PlayerRespawner>();
            }

            if (SpawnUponDeath != null)
            {
                spawnUponDeathScale = this.transform.localScale;
            }
        }
Exemplo n.º 2
0
 void Start()
 {
     player       = GetComponentInParent <PlatformerCharacter2D>();
     playerSounds = GetComponent <CharacterSounds>();
 }