void Awake()
 {
     if (Ins == null)
     {
         Ins = this;
     }
 }
Exemple #2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        WSDebug myTarget = (WSDebug)target;

        if (GUILayout.Button("Apply"))
        {
            myTarget.Apply();
        }
        if (GUILayout.Button("LoadAmbTest"))
        {
            AmbLoader.Ins.LoadAmb("characteramb");
        }
    }
Exemple #3
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        WSDebug myTarget = (WSDebug)target;

        if (GUILayout.Button("Apply"))
        {
            myTarget.Apply();
        }
        if (GUILayout.Button("Sync"))
        {
            myTarget.SyncAttr();
        }
        if (GUILayout.Button("CalcMeshCount"))
        {
            myTarget.CalcMeshCount();
        }
        if (GUILayout.Button("GenerateAllMaterial"))
        {
            myTarget.GenerateAll();
        }
    }
 void OnDestroy()
 {
     Ins = null;
 }
 void Awake()
 {
     Ins    = this;
     Opened = false;
     HiDebug.SetFontSize(35);
 }