示例#1
0
    private void SelectGroup(GameObject go)
    {
        if (go == null)
        {
            return;
        }
        Vid_Object       vidObj    = go.GetComponent <Vid_Object>();
        Vid_ObjectInputs inputs    = vidObj.GetInputs();
        VidContainer     container = go.GetComponent <VidContainer>();

        container.Select();

        if (inputs == null)
        {
            return;
        }
        for (int i = 0; i < inputs.inputs.Length; i++)
        {
            if (inputs.inputs[i] == null)
            {
            }
            else
            {
                Debug.Log("Check2:" + inputs.inputs[i].gameObject.ToString());
                SelectGroup(inputs.inputs[i].gameObject);
            }
        }
    }
示例#2
0
    private void DeselectGroup(GameObject go)
    {
        if (go == null)
        {
            return;
        }
        Vid_Object       vidObj    = go.GetComponent <Vid_Object>();
        Vid_ObjectInputs inputs    = vidObj.GetInputs();
        VidContainer     container = go.GetComponent <VidContainer>();

        container.Deselect();
        if (inputs == null)
        {
            return;
        }
        for (int i = 0; i < inputs.inputs.Length; i++)
        {
            if (inputs.inputs[i] == null)
            {
            }
            else
            {
                DeselectGroup(inputs.inputs[i].gameObject);
            }
        }
    }
示例#3
0
 public void DeactivateUI()
 {
     for (int i = 0; i < holdingV2.Count; i++)
     {
         Vid_Object       vidObj    = holdingV2[i].GetComponent <Vid_Object>();
         Vid_ObjectInputs inputs    = vidObj.GetInputs();
         VidContainer     container = holdingV2[i].GetComponent <VidContainer>();
         if (container.UIControlls != null)
         {
             container.UIControlls.SetActive(false);
         }
     }
 }