Esempio n. 1
0
 /// <summary>
 /// when the <see cref="GameObject"/> is selected set the currentDirection tool to the view tool.
 /// </summary>
 private void OnEnable() {
     Tools.current = Tool.View;
     Tools.viewTool = ViewTool.Orbit;
     this._target = (GridMap)this.target;
 }
Esempio n. 2
0
        public void Awake() {
            instance = this;
            Instantiate(Resources.Load("ResourceManager") as GameObject);
            TileManager.FindOrCreate();
            this.GenerateWalls();
            this.CreateBlockPlane();
            //GeneratePlayers();
            GridController.FindOrCreate();

            if(TileManager.instance.CurrentSkin != GlobalInfo.Skin.STANDARD) {
                this.gameObject.BroadcastMessage("ChangeTileMaterial");
            }
        }
Esempio n. 3
0
 public void Init() {
     this._target = (GridMap)FindObjectOfType(typeof(GridMap));
 }
Esempio n. 4
0
 /// <summary>
 /// when the <see cref="GameObject"/> is selected set the currentDirection tool to the view tool.
 /// </summary>
 private void OnEnable()
 {
     Tools.current  = Tool.View;
     Tools.viewTool = ViewTool.Orbit;
     this._target   = (GridMap)this.target;
 }