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