Esempio n. 1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        CharacterLoader myTarget = (CharacterLoader)target;

        source = GUILayout.TextField(source);
        frame  = GUILayout.TextField(frame);
        if (GUILayout.Button("PlayFrame"))
        {
            if (!string.IsNullOrEmpty(source) && !string.IsNullOrEmpty(frame))
            {
                myTarget.ChangeFrame(int.Parse(source), int.Parse(frame));
            }
        }
    }