예제 #1
0
        void Start()
        {
            characterSounds = GetComponentInChildren <CharacterSounds>();
            _characterInput = GetComponent <PlatformerCharacter2D>();

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

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