示例#1
0
 /// <inheritdoc/>
 public override void OnAwake()
 {
     ConfigAccessor.CopyPartConfigFromPrefab(this);
     base.OnAwake();
     GameEvents.onVesselRename.Add(OnVesselRename);
     LocalizeModule();
 }
示例#2
0
        /// <inheritdoc/>
        public override void OnAwake()
        {
            ConfigAccessor.CopyPartConfigFromPrefab(this);
            base.OnAwake();

            LocalizeModule();
            linkStateMachine = new SimpleStateMachine <LinkState>(true /* strict */);
            SetupStateMachine();
            GameEvents.onPartCouple.Add(OnPartCoupleEvent);
        }
示例#3
0
 /// <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);
 }