Exemplo n.º 1
0
    public void MachineStateUI(string name, string title, UnsMachineLogic.MachineState state)
    {
        GUILayout.BeginVertical();

        GUILayout.Label(title);

        PropertyField(name, "c_gos_Show", "显示模型");
        PropertyField(name, "c_gos_Hide", "隐藏模型");

        SetPath(state.c_gos_Show, ref state.Show);
        SetPath(state.c_gos_Hide, ref state.Hide);

        GUILayout.EndVertical();
    }
Exemplo n.º 2
0
 public void BoundMachineStateUI(UnsMachineLogic.MachineState state)
 {
     state.c_gos_Hide = ControlTools.FindObjects(state.Hide);
     state.c_gos_Show = ControlTools.FindObjects(state.Show);
 }