Ejemplo n.º 1
0
    void Start()
    {
        mouseCursorHoverItem = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/mouseCursorHoverItem");
        isGrabbing           = Resources.Load <UnityAtoms.BoolVariable> ("Variables/isGrabbing");

        mouseRaycaster = GetComponent <MouseRay> ();
    }
Ejemplo n.º 2
0
    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);
    }
Ejemplo n.º 3
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);
        // }
    }
Ejemplo n.º 4
0
 private void Start()
 {
     Slot1Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot1Object");
     Slot2Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot2Object");
     Slot3Object = Resources.Load <UnityAtoms.GameObjectVariable> ("Variables/Slot3Object");
 }