override protected void Execute() { RihaNode variable = this.parameters[0]; ValueType type = GetValueType(words[3]); variable.SetType(type); RihaCompiler.AddToMemory(words[1], variable); }
public override void OnInspectorGUI() { DrawDefaultInspector(); command = GUILayout.TextArea(command); if (GUILayout.Button("Compile")) { RihaCompiler rc = target as RihaCompiler; rc.Execute(command); } }
// Use this for initialization void Start() { GameData.PopupateResources(); GameData.PopulateBuildings(); playerController = player.GetComponent <PlayerController>(); compiler = GetComponent <RihaCompiler>(); isPause = false; island = GameObject.FindGameObjectWithTag("island").GetComponent <Island>(); SaveGame.LoadGame(!PlayerPrefs.HasKey("LoadGame")); buildingInfo = new bool[GameData.buildings.buildings.Count]; }