示例#1
0
 public void ActivateSwitch()
 {
     isActive = true;
     storedValue.RuntimeValue = isActive;
     thisDoor.OpenDoor();
     mySprite.sprite = activeSprite;
 }
示例#2
0
    void OnArrival()
    {
        elevatorDoors.OpenDoor();

        GameObject go = FindNearestDoor();

        if (go)
        {
            go.GetComponent <Doors>().OpenDoor();
        }

        // Debug.Log("Arrived at: " + this.transform.position.ToString());
    }