Beispiel #1
0
 void Start()
 {
     var player = GameObject.FindWithTag("Player");
     playerScript = player.GetComponent<jumpScript>();
 }
Beispiel #2
0
    void Start()
    {
        var player = GameObject.FindWithTag("Player");

        playerScript = player.GetComponent <jumpScript>();
    }