コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     myControllerInputs = this.gameObject.GetComponent <controllerInputs>();
     myAnimator         = this.gameObject.GetComponent <Animator>();
     effectAnimator     = this.transform.GetChild(1).GetComponent <Animator>();
     myAudioManager     = this.gameObject.GetComponent <AudioManager>();
     myAttackSystem     = this.gameObject.GetComponent <attackSystem>();
 }
コード例 #2
0
ファイル: playerMove.cs プロジェクト: mconkla/daFighter_GAME
 void onLoad()
 {
     myControllerInputs = this.gameObject.GetComponent <controllerInputs>();
     otherPlayer        = FindObjectsOfType <playerMove>()[(this.gameObject.tag == "1" ? 1 : 2) - 1].gameObject.transform;
 }
コード例 #3
0
 void onLoad()
 {
     myControllerInputs      = this.gameObject.GetComponent <controllerInputs>();
     myTriggerColliderSystem = this.gameObject.transform.GetChild(0).GetComponent <triggerColliderSystem>();
 }