예제 #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;
 }