public void SwitchStratergy() { if (stratergy is Stratergy1) stratergy = new Stratergy2(); else stratergy = new Stratergy2(); }
public void SwitchStratergy() { if (stratergy is Stratergy1) { stratergy = new Stratergy2(); } else { stratergy = new Stratergy2(); } }
public void ChangeStratergy(IStratergy stratergy) { _stratergy = stratergy; }
public Context(IStratergy stratergy) { _stratergy = stratergy; }