// 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; }
// Start is called before the first frame update void Start() { player = FindObjectOfType <PlayerPlusGhost>(); usedkey = FindObjectOfType <UsedKey>(); }