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

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