public void ActivateSwitch() { isActive = true; storedValue.RuntimeValue = isActive; thisDoor.OpenDoor(); mySprite.sprite = activeSprite; }
void OnArrival() { elevatorDoors.OpenDoor(); GameObject go = FindNearestDoor(); if (go) { go.GetComponent <Doors>().OpenDoor(); } // Debug.Log("Arrived at: " + this.transform.position.ToString()); }