コード例 #1
0
    override protected void Execute()
    {
        RihaNode  variable = this.parameters[0];
        ValueType type     = GetValueType(words[3]);

        variable.SetType(type);

        RihaCompiler.AddToMemory(words[1], variable);
    }
コード例 #2
0
 public override void OnInspectorGUI()
 {
     DrawDefaultInspector();
     command = GUILayout.TextArea(command);
     if (GUILayout.Button("Compile"))
     {
         RihaCompiler rc = target as RihaCompiler;
         rc.Execute(command);
     }
 }
コード例 #3
0
    // 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];
    }