Beispiel #1
0
 protected UnturnedBuildable(IBuildableAsset asset, IWorldTransform transform, IBuildableState state,
                             IOwnership ownership, string buildableInstanceId)
 {
     Asset               = asset;
     Transform           = transform;
     State               = state;
     Ownership           = ownership;
     BuildableInstanceId = buildableInstanceId;
 }
Beispiel #2
0
 public void UpdateWorldTransform(IWorldTransform parentWorldTransform)
 {
     _parentWorldTransform = parentWorldTransform.WorldTransform;
     _worldTransform       = _localTransform * _parentWorldTransform;
     UpdateChildrenTransform();
 }