public void UpdateForwardAngle(bool isBlockButtonActive) { _view.ForwardAngle = Mathf.MoveTowardsAngle( _view.ForwardAngle, ShieldUtility.GetForwardAngleTargetIf(isBlockButtonActive), ShieldUtility.GetForwardAngleUpdateStepIf(isBlockButtonActive)); }
public void Init() { AllComps.OfType <IEnergyNode>().Do(Connect); _flickable = GetComp <CompFlickable>(); _shield = ShieldUtility.FindComp(AllComps); _shield.SetParent(this); _heatSink = HeatsinkUtility.FindComp(AllComps); }
public override void SpawnSetup(Map map, bool respawningAfterLoad) { _energySource = EnergySourceUtility.Find(this); _shield = ShieldUtility.FindComp(this); _heatSink = HeatsinkUtility.FindComp(this); _activeLastTick = IsActive; base.SpawnSetup(map, respawningAfterLoad); }