protected override void OnEnable() { base.OnEnable(); if (MatrixMove == null) { MatrixMove = this.GetComponent <MatrixMove>(); MatrixMove.RegisterShuttleFuelSystem(this); } }
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); }