protected override void onAwake() { base.onAwake(); this.outlineHelper = new OutlineHelper(this.gameObject); //TODO do we need this? this.setTeam(Team.getTeamFromEnum(this.objectTeam)); }
public override void onUiInit() { base.onUiInit(); this.outlineHelper = this.GetComponent <OutlineHelper>(); this.outlineHelper.hideAll(); this.shouldShowHealth = Main.DEBUG_HEALTH || !(this is HarvestableObject) || (this is SidedEntity && ((SidedEntity)this).getTeam() == Player.localPlayer.getTeam()); this.hookOnChangeHealth(this.currentHealth); }
private void add() { if (!this.isThere) { this.isThere = true; this.gameObj = GameObject.Instantiate(References.list.wallJoinPiece); this.gameObj.transform.parent = this.parentWall.transform; this.gameObj.transform.position = this.parentWall.transform.position + (this.vector * 0.25f); if (this.vector.x == 0) { this.gameObj.transform.eulerAngles = new Vector3(0, 90, 0); } this.outlineHelper = new OutlineHelper(this.gameObj); } else { print("add() called on an extension that already exists!"); } }