Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     thePlayer = FindObjectOfType <CharMove2D>();
 }
Example #2
0
 void Awake()
 {
     sceneloader    = GameObject.Find("SceneManager").GetComponent <SceneLoader>();
     playerMovement = this.GetComponent <CharMove2D>();
     audioData      = GetComponent <AudioSource>();
 }