Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     controllerRef = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
     controlsRef   = GameObject.FindGameObjectWithTag("PlayerReferences").GetComponent <RunJump>();
     attackBoolRef = GameObject.FindGameObjectWithTag("PlayerReferences").GetComponent <PlayerAttacks>();
 }
Beispiel #2
0
 private void Start()
 {
     runJumpRef = GameObject.FindGameObjectWithTag("PlayerReferences").GetComponent <RunJump>();
     _attacks   = GameObject.FindGameObjectWithTag("PlayerReferences").GetComponent <PlayerAttacks>();
 }