Example #1
0
        public void InitArmHUDState()
        {
            //		handController = GameObject.FindObjectOfType<HandController> () as HandController;
            //		LookAtTarget = GameObject.Find ("OVRCameraRig") as GameObject;


            if (!StateList.HasList(STATE_NAME_ARMHUD))
            {
                InitArmHUDStateList();
            }
            ArmHUDState = new State(STATE_NAME_ARMHUD);
            ArmHUDState.StateChangedEvent += OnArmHUDStateChange;
            ArmHUDState.Change(ARMHUDSTATE_NOLEFTHAND);
        }
Example #2
0
 void InitArmHUDStateList()
 {
     if (!StateList.HasList(STATE_NAME_ARMHUD))
     {
         StateList.Create(
             STATE_NAME_ARMHUD,
             ARMHUDSTATE_START,
             ARMHUDSTATE_NOLEFTHAND,
             ARMHUDSTATE_STATUS_ETC,
             ARMHUDSTATE_SETTINGS_ONLY,
             ARMHUDSTATE_2HANDSEDIT,
             ARMHUDSTATE_PANELVISIBLE,
             ARMHUDSTATE_DROPPED
             );
     }
 }