/// <inheritdoc/> public override void OnAwake() { ConfigAccessor.CopyPartConfigFromPrefab(this); base.OnAwake(); GameEvents.onVesselRename.Add(OnVesselRename); LocalizeModule(); }
/// <inheritdoc/> public override void OnAwake() { ConfigAccessor.CopyPartConfigFromPrefab(this); base.OnAwake(); LocalizeModule(); linkStateMachine = new SimpleStateMachine <LinkState>(true /* strict */); SetupStateMachine(); GameEvents.onPartCouple.Add(OnPartCoupleEvent); }
/// <inheritdoc cref="IPartModule.OnAwake" /> public override void OnAwake() { ConfigAccessor.CopyPartConfigFromPrefab(this); base.OnAwake(); LocalizeModule(); }
public override void OnAwake() { base.OnAwake(); // get hthe custom fields from the prefab. ConfigAccessor.CopyPartConfigFromPrefab(this); }