Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.S) && active == 1)
     {
         //Camera.transform.position = new Vector3 (-0.037f, 0.936f, -0.947f);
         //Cube.GetComponent<MeshRenderer>().material.color = new Color(1.0f, 1.0f, 1.0f, 0.5f);
         _handpool2.EnableGroup("HandCapsules2");
         _handpool2.EnableGroup("HandRidgids2");
         //_handpool2.GetComponent<MeshRenderer>().material.color.a = new Color(1.0f, 1.0f, 1.0f, 0.5f);
         _handpool1.DisableGroup("HandCapsules1");
         _handpool1.DisableGroup("HandRidgids1");
         print("Dissabled Handgroup 1, Enabled Handgroup 2");
         active = 2;
     }
     else if (Input.GetKeyDown(KeyCode.S) && active == 2)
     {
         //Cube.GetComponent<MeshRenderer>().material.color = new Color(1.0f, 1.0f, 1.0f, 1.0f);
         _handpool1.EnableGroup("HandCapsules1");
         _handpool1.EnableGroup("HandRidgids1");
         _handpool2.DisableGroup("HandCapsules2");
         _handpool2.DisableGroup("HandRidgids2");
         print("Dissabled Handgroup 2, Enabled Handgroup 1");
         active = 1;
     }
 }
 private void disableAllGroups()
 {
     for (int i = 0; i < GroupNames.Length; i++)
     {
         HandPool.DisableGroup(GroupNames[i]);
     }
 }