Example #1
0
 public void Clone(CraneArchitect other)
 {
     this._logPrefab      = other._logPrefab;
     this._logRenderer    = other._logRenderer;
     this._maxLogScale    = other._maxLogScale;
     this._craftStructure = other._craftStructure;
     this._logItemId      = other._logItemId;
     this._aboveGround    = other._aboveGround;
 }
Example #2
0
        public void OnBuilt(GameObject built)
        {
            CraneArchitect component = built.GetComponent <CraneArchitect>();

            component._wasBuilt    = true;
            component._aboveGround = this._aboveGround;
            component._bottomY     = this._bottomY;
            if (this._craftStructure)
            {
                Craft_Structure craftStructure = this._craftStructure;
                craftStructure.OnBuilt = (Action <GameObject>)Delegate.Remove(craftStructure.OnBuilt, new Action <GameObject>(this.OnBuilt));
            }
        }