Exemplo n.º 1
0
        private void OnBuilt(GameObject built)
        {
            BridgeArchitect component = built.GetComponent <BridgeArchitect>();

            component._anchor1 = this._anchor1;
            component._anchor1._hookedInStructure = component;
            component._anchor2 = this._anchor2;
            component._anchor2._hookedInStructure = component;
            component._wasBuilt = true;
        }
Exemplo n.º 2
0
 public override void Attached()
 {
     this.arch = base.GetComponent<BridgeArchitect>();
     this.arch.WasBuilt = true;
     this.arch.CustomToken = this.entity.attachToken;
     if (!this.entity.isOwner)
     {
         this.entity.SendMessage("OnDeserialized");
     }
 }