示例#1
0
 protected override void OnEnable()
 {
     base.OnEnable();
     if (MatrixMove == null)
     {
         MatrixMove = this.GetComponent <MatrixMove>();
         MatrixMove.RegisterShuttleFuelSystem(this);
     }
 }
示例#2
0
 protected void OnEnable()
 {
     if (MatrixMove.ShuttleFuelSystem == null)
     {
         MatrixMove.RegisterShuttleFuelSystem(this);                                                  //For constructable shuttles.
     }
     if (CustomNetworkManager.IsServer == false)
     {
         return;
     }
     UpdateManager.Add(CallbackType.UPDATE, UpdateMe);
 }
        protected override void OnEnable()
        {
            base.OnEnable();
            if (MatrixMove == null)
            {
                MatrixMove = this.GetComponent <MatrixMove>();
                MatrixMove.RegisterShuttleFuelSystem(this);
            }

            if (Connector == null)
            {
                Logger.LogError($"{nameof(Connector)} was null on {this}!");
            }
        }
        protected void OnEnable()
        {
            if (MatrixMove == null)
            {
                MatrixMove = this.GetComponent <MatrixMove>();
                MatrixMove.RegisterShuttleFuelSystem(this);
            }

            if (CustomNetworkManager.IsServer == false)
            {
                return;
            }

            UpdateManager.Add(CallbackType.UPDATE, UpdateMe);
        }