Exemple #1
0
 private void Start()
 {
     dotAxes    = GetComponentInParent <DotAxes>();
     dot        = GetComponent <RectTransform>();
     easyMotion = FindObjectOfType <EasyMotion>();
     dotImage   = GetComponent <RawImage>();
 }
 private void OnEnable()
 {
     skin                = (GUISkin)Resources.Load(EasyMotionConstants.pluginSkin);
     easyMotion          = (EasyMotion)serializedObject.targetObject;
     toggleStatesScripts = Resources.FindObjectsOfTypeAll <ToggleStates>();
     if (toggleStatesScripts.Length > 0)
     {
         toggleStates = toggleStatesScripts[0];
     }
     if (easyMotion.gameObject.activeInHierarchy)
     {
         InitialiseVisualAidPrefab();
         lookingForVisualAidPrefab = true;
         FindVisualAidPrefab();
         GetGroupHeaderStates();
         GetVisualAidStates();
         GetJitterEffectState();
         objectActivated = true;
     }
 }
 void Start()
 {
     easyMotion = FindObjectOfType <EasyMotion>();
     seat       = GetComponent <RectTransform>();
 }
 private void Start()
 {
     LogitechGSDK.LogiSteeringInitialize(false);
     easyMotion = GetComponent <EasyMotion>();
 }