示例#1
0
 // 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>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     currentCharacter     = this.GetComponent <CharacterFeatures>();
     characterActions     = this.GetComponent <CharacterActions>();
     characterSoundEffect = CharacterSoundEffectPlayer.GetComponent <CharacterSoundEffect>();
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     rivalSoundEffect = RivalSoundEffectPlayer.GetComponent <CharacterSoundEffect>();
 }