public void SetFraction(Fraction f) { Fraction = f; ResetChargeAndBooster(); controller?.OnRemove(); controller = this.GDOwner().CreateController(Fraction, this); }
public override void OnInitialize(EntityManager manager) { controller = this.GDOwner().CreateController(Fraction, this); CreatePhysics(); CreateShieldPhysics(); }
public void ForceSetController(AbstractFractionController ctrl) { controller = ctrl; }
public void ForceUpdateController() { controller?.OnRemove(); controller = this.GDOwner().CreateController(Fraction, this); }