Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (secondFrame)
        {
            secondFrame = false;
            rtsMinor    = gameObject.transform.parent;
            rtsInstanceMinor.enabled = false;

            RetrieveColumnNames();
        }
        if (virgin)
        {
            InvokeRepeating("CountDown", 0.1f, 0.1f);
            virgin            = false;
            areaOfEffect.size = new Vector3(1.5f, tableHeight * 2, 1.5f);

            rtsInstanceMinor         = gameObject.AddComponent <Leap.Unity.JamesV_LeapRTS>();
            rtsInstanceMinor.enabled = true;;

            secondFrame = true;
        }

        if (timer == 0)
        {
            for (int i = 0; i < columns.Count; i++)
            {
                columns[i].GetComponent <Column>().columnTriggered(false);
            }
            triggered = false;
            selectTool.removeTable(gameObject);
            t.UpdateInfo(outPut, false);
        }
    }
Ejemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        if (secondFrame)
        {
            secondFrame = false;
            rtsMinor = gameObject.transform.parent;
            rtsInstanceMinor.enabled = false;

            RetrieveColumnNames();
        }  
        if (virgin)
        {
            InvokeRepeating("CountDown", 0.1f, 0.1f);
            virgin = false;
            areaOfEffect.size = new Vector3(1.5f, tableHeight * 2, 1.5f);

            rtsInstanceMinor = gameObject.AddComponent<Leap.Unity.JamesV_LeapRTS>();
            rtsInstanceMinor.enabled = true; ;

            secondFrame = true;         
        }

        if(timer == 0)
        {
            for (int i = 0; i < columns.Count; i++)
            {
                columns[i].GetComponent<Column>().columnTriggered(false);
            }
            triggered = false;
            selectTool.removeTable(gameObject);
            t.UpdateInfo(outPut, false); 
        }
    }
Ejemplo n.º 3
0
	// Use this for initialization
	void Start () {
        virgin = true;
        toggled = false;
        initialized = false;
        firstTime = true;
        rtsInstance = gameObject.GetComponent<Leap.Unity.JamesV_LeapRTS>();
	}
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     virgin      = true;
     toggled     = false;
     initialized = false;
     firstTime   = true;
     rtsInstance = gameObject.GetComponent <Leap.Unity.JamesV_LeapRTS>();
 }
Ejemplo n.º 5
0
 void Awake() {
     holdingV2 = new List<GameObject>();
     if (rts != null) {
         rts.enabled = false;
     }
     else {
         rts = gameObject.AddComponent<JamesV_LeapRTS>();
         rts.speed = 5;
         rts.enabled = false;
     }
 }