// Start is called before the first frame update void Start() { collapse = false; checker = GameObject.FindObjectOfType <FlipLever>(); startPosition = transform.position; scraping = GetComponent <AudioSource>(); if (name == "Hazards") { consistence = GameObject.FindObjectOfType <CollapseCeiling>(); } }
void Start() { take = GameObject.Find("FalseDoorLetOut").transform.position; checker = GameObject.FindObjectOfType <FlipLever>(); doorSprite = GameObject.Find("Level2Door_0"); }
// Start is called before the first frame update void Start() { collapse = false; checker = GameObject.FindObjectOfType <FlipLever>(); }