Ejemplo n.º 1
0
        protected override void onAwake()
        {
            base.onAwake();

            this.outlineHelper = new OutlineHelper(this.gameObject);

            //TODO do we need this?
            this.setTeam(Team.getTeamFromEnum(this.objectTeam));
        }
Ejemplo n.º 2
0
    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);
    }
Ejemplo n.º 3
0
 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!");
     }
 }