public void Awake()
    {
        this.treeviewHandlerScript = this.GetComponent <TreeviewHandler>() as TreeviewHandler;
        this.entityHandlerScript   = this.GetComponent <EntityHandler>() as EntityHandler;

        ReadFilesFromIniFile();
    }
    public void Awake()
    {
        // TODO uncomment after adding initial screen
        this.resourceHandlerScript = GameObject.Find("ResourceManager").GetComponent <ResourceManager>() as ResourceManager;

        this.treeviewHandlerScript = this.GetComponent <TreeviewHandler>() as TreeviewHandler;
    }
    void Awake()
    {
        //this.terrainGeneratorScript = this.GetComponent<TerrainGenerator>() as TerrainGenerator;
        this.treeviewHandlerScript = GameObject.Find("Script Handler").GetComponent <TreeviewHandler>() as TreeviewHandler;
        this.entityHandlerScript   = GameObject.Find("Script Handler").GetComponent <EntityHandler>() as EntityHandler;

        // set inital position of camera in its view
        transform.position = new Vector3(4096, 8192, 4096);
        transform.rotation = Quaternion.identity;
        transform.Rotate(90, 0, 0);
    }
Example #4
0
 public void Awake()
 {
     this.treeviewHandlerScript = GameObject.Find("Script Handler").GetComponent <TreeviewHandler>() as TreeviewHandler;
     this.entityHandlerScript   = GameObject.Find("Script Handler").GetComponent <EntityHandler>() as EntityHandler;
 }