Beispiel #1
0
 public void UpdateForwardAngle(bool isBlockButtonActive)
 {
     _view.ForwardAngle = Mathf.MoveTowardsAngle(
         _view.ForwardAngle,
         ShieldUtility.GetForwardAngleTargetIf(isBlockButtonActive),
         ShieldUtility.GetForwardAngleUpdateStepIf(isBlockButtonActive));
 }
Beispiel #2
0
 public void Init()
 {
     AllComps.OfType <IEnergyNode>().Do(Connect);
     _flickable = GetComp <CompFlickable>();
     _shield    = ShieldUtility.FindComp(AllComps);
     _shield.SetParent(this);
     _heatSink = HeatsinkUtility.FindComp(AllComps);
 }
Beispiel #3
0
 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);
 }