/// <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; }
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"); } }
public void Init() { this._target = (GridMap)FindObjectOfType(typeof(GridMap)); }