Пример #1
0
 void Awake()
 {
     if (s_instance == null)
     {
         s_instance = this;
     }
     else
     {
         Debug.LogWarning("Deleting duplicate ReadoutDisplay named: " + name);
         DestroyImmediate(gameObject);
     }
 }
Пример #2
0
    void Start()
    {
        toggles = new bool[8];
        // Just saying that the weight container is outside
        toggles[0] = true;
        // Set the rest to false
        for (int i = 1; i < toggles.Length; i++)
        {
            toggles[i] = false;
        }

        ReadoutDisplay readOutDisplay = ReadoutDisplay.s_instance;

        readOutDisplay.balanceOn         = true;
        readOutDisplay.balanceCalibrated = true;
        readOutDisplay.ToggleDisplay(true, true, false);
        readOutDisplay.readoutNumberText.text = "0.0000";

        rightDoorOpenState   = Animator.StringToHash("Base Layer.SMB_RightGlass_Open");
        rightDoorClosedState = Animator.StringToHash("Base Layer.SMB_RightGlass_Closed");
        leftDoorOpenState    = Animator.StringToHash("Base Layer.SMB_LeftGlass_Open");
        leftDoorClosedState  = Animator.StringToHash("Base Layer.SMB_LeftGlass_Closed");
    }