示例#1
0
 void ResetAttackPreview()
 {
     if (attack_preview_highlight != null)
     {
         attack_preview_highlight.RemoveGroup();
     }
 }
示例#2
0
    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();
        }
    }
示例#3
0
 void OnUnselect(UnitActionBase unselect)
 {
     previewed.RemoveGroup();
     previewed = null;
 }