void ResetAttackPreview() { if (attack_preview_highlight != null) { attack_preview_highlight.RemoveGroup(); } }
void Update() { if (Input.GetKeyDown(KeyCode.A)) { m_state = new VisualState(TileStateConfigs.GetMaterialForstate("editor_selected")); GetComponent <MeshMaterialView>().AddState(m_state); } if (Input.GetKeyUp(KeyCode.A)) { m_state.RemoveState(); } if (Input.GetKeyUp(KeyCode.D)) { GetComponent <MeshMaterialView>().AddState(startState); } if (Input.GetKeyDown(KeyCode.K)) { group = new MeshViewGroup(objects, TileStateConfigs.GetMaterialForstate("editor_selected")); } if (Input.GetKeyDown(KeyCode.L)) { group.RemoveGroup(); } }
void OnUnselect(UnitActionBase unselect) { previewed.RemoveGroup(); previewed = null; }