Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     originalY = transform.position.y;
     gotkey    = false;
     player    = FindObjectOfType <PlayerPlusGhost>();
 }
 // Start is called before the first frame update
 void Start()
 {
     rb2d          = GetComponent <Rigidbody2D>();
     playerControl = FindObjectOfType <PlayerPlusGhost>();
     ghostControl  = false;
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     player  = FindObjectOfType <PlayerPlusGhost>();
     usedkey = FindObjectOfType <UsedKey>();
 }