Ejemplo n.º 1
0
 protected virtual void Awake()
 {
     Parts     = new BuilderParts(transform.parent);
     Context   = Parts.GetVehicleBuilder().GetContext(this.GetType().Name);
     BuildData = (BaseBuildData)Context.GetAssetDirectly();
     Parts.GetVehicleBuilder().PartChanged += delegate
     {
         InitBaseBuildData();
     };
 }
 private void Awake()
 {
     tasks          = new Queue <Action>();
     parts          = new BuilderParts(transform);
     contextStorage = new Dictionary <string, VehiclePartContext>()
     {
         { nameof(VehicleBuilder), null },
         { nameof(HeadBuilder), null },
         { nameof(BodyBuilder), null },
     };
 }