/** FUSION **/ public void ClickFusion() { this.FusionPanel.SetActive(true); GesturesHandler.SetFusionSelection(true); //Wait for event StartCoroutine(FusionSelection()); }
private void ResetDeleteSelection() { //Reset colors foreach (string GOName in deleteList.Keys) { GameObject tempGo = GameObject.Find(GOName); Material mat = tempGo.GetComponentInChildren <MeshRenderer>().materials[0]; mat.color = deleteList[GOName]; } //Clear list deleteList.Clear(); GesturesHandler.SetDeleteSelection(false); this.DeletePanel.SetActive(false); }
private void ResetFusionSelection() { Debug.Log("FUSION LIST RESET"); //Reset colors foreach (String GOName in fusionList.Keys) { Debug.Log("Find " + GOName + " and reset color"); GameObject tempGo = GameObject.Find(GOName); Material mat = tempGo.GetComponentInChildren <MeshRenderer>().materials[0]; mat.color = fusionList[GOName]; } //Clear list fusionList.Clear(); GesturesHandler.SetFusionSelection(false); this.FusionPanel.SetActive(false); }
/** DELETE **/ public void ClickDelete() { this.DeletePanel.SetActive(true); GesturesHandler.SetDeleteSelection(true); }