using UnityEngine;
using System.Collections.Generic;
[System.Serializable]
public class PythonBase : MonoBehaviour
{
///
/// The path of file
///
public string FilePath;
///
/// The name of the file.
///
public string FileName = "Untitled.py";
///
/// The file created.
///
public bool FileCreated, Saved, InMemory;
///
/// Has changes in file
///
public bool HasChanges = true;
public enum Views {
Code,
Interpreter
};
///
/// The current view.
///
public Views CurrentView;
///
/// The lib path.
///
public static List SysPath = new List();
///
/// The default code.
///
public static string DefaultCode = "import UnityEngine as unity\n\n"+
"class Untitled(): \n\n"+
"\tdef Start(self, this):\n"+
"\t\tpass\n\n"+
"\tdef Update(self, this):\n"+
"\t\tpass";
///
/// Reset this instance.
///
public void Reset()
{
FilePath = string.Empty;
Saved = false;
HasChanges = true;
FileCreated = false;
FileName = "Untitled.py";
}
//TODO:
[ContextMenu("Cursor Block")]
private void Menu()
{
Debug.Log("CursorBlock");
}
//TODO:
[ContextMenu("Vertical Bar")]
private void Menu2()
{
Debug.Log("CursorBlock");
}
}