Exemple #1
0
 void Start()
 {
     motor = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMotor>();
 }
Exemple #2
0
 void Awake()
 {
     motor = FindObjectOfType <PlayerMotor>();
     aud   = FindObjectOfType <SpawnManager>().GetComponent <AudioSource>();
     gm    = FindObjectOfType <SplitLinerGameManager>();
 }