private void Awake() { BuildOutline.singleton = this; this.cachedBuilders = new List <UnitBuilder>(); this.meshRenderer = this.GetComponent <MeshRenderer>(); // Make sure this object is at the right height. this.transform.position.setY(HEIGHT); }
private void Awake() { CameraMover.singleton = this; this.main = Main.instance(); this.options = new Options(); this.buildOutline = GameObject.Instantiate(References.list.buildOutlinePrefab).GetComponent <BuildOutline>(); this.team = Team.getTeamFromEnum(this.objectTeam); this.selectedParty.setCameraMover(this); this.chunkLoader = new ChunkLoader(Map.instance(), this, 3); }