void Start() { mouseCursorHoverItem = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/mouseCursorHoverItem"); isGrabbing = Resources.Load <UnityAtoms.BoolVariable> ("Variables/isGrabbing"); mouseRaycaster = GetComponent <MouseRay> (); }
void Start() { Slot1Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot1Object"); Slot2Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot2Object"); Slot3Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot3Object"); askTimeleftPercent = Resources.Load <UnityAtoms.FloatVariable> ("Variables/askTimeleftPercent"); askTimeleftPercent.SetValue(0); }
private void Start() { cam = Camera.main; mouseCursorWorld = Resources.Load <UnityAtoms.Vector3Variable> ("Variables/mouseCursorWorld"); isGrabbing = Resources.Load <UnityAtoms.BoolVariable> ("Variables/isGrabbing"); grabbedItem = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/grabbedItem"); mouseCursorHoverUI = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/mouseCursorHoverUI"); originalRotation = transform.rotation; var toolTipGo = GameObject.FindGameObjectWithTag("toolTip"); if (toolTipGo != null) { toolTipGo.TryGetComponent <ToolTipBehavior> (out toolTip); } // if (toolTip == null) // { // Debug.LogError ("Tooltip not found!"); // print (toolTipGo); // } }
private void Start() { Slot1Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot1Object"); Slot2Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot2Object"); Slot3Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot3Object"); }