// Use this for initialization void Start() { currentCharacter = this.GetComponent <CharacterFeatures>(); rivalCharacter = rivalCharacters.transform.GetChild(0).gameObject; characterSoundEffect = characterSoundEffectPlayer.GetComponent <CharacterSoundEffect>(); boxCollider = this.GetComponent <BoxCollider2D>(); characterSides = boxCollider.bounds.extents; rigidBody = this.GetComponent <Rigidbody2D>(); }
// Use this for initialization void Start() { currentCharacter = this.GetComponent <CharacterFeatures>(); characterActions = this.GetComponent <CharacterActions>(); characterSoundEffect = CharacterSoundEffectPlayer.GetComponent <CharacterSoundEffect>(); }
// Use this for initialization void Start() { rivalSoundEffect = RivalSoundEffectPlayer.GetComponent <CharacterSoundEffect>(); }