public static Skill GetSkill(ESkillName name, SkillUseButton button) { switch (name) { case ESkillName.Arrest: return(new Arrest(button)); case ESkillName.FastMove: return(new FastMove(button)); case ESkillName.TrapItem: return(new TrapItem(button)); case ESkillName.Sensing: return(new Sensing(button)); case ESkillName.SecretPath: return(new SecretPath(button)); case ESkillName.Smoke: return(new Smoke(button)); default: return(new DummySkill(button)); } }
public void InitArrestSetting(SkillUseButton button, int initArrestCount) { arrestCount = initArrestCount; arrestButton = button; arrestButton.SetRemainingCount(ArrestCount); }
public TrapItem(SkillUseButton _button) : base(_button) { button.SetRemainingCount(count); }
public FastMove(SkillUseButton _button) : base(_button) { }
public Arrest(SkillUseButton _button) : base(_button) { _button.SetPassive(); MultiplayRoomManager.Instance.InitArrestSetting(_button, initCount); }
public Skill(SkillUseButton _button) { button = _button; }
public DummySkill(SkillUseButton _button) : base(_button) { button.SetRemainingCount(count); }
public Smoke(SkillUseButton _button) : base(_button) { }
public SecretPath(SkillUseButton _button) : base(_button) { button.SetRemainingCount(count / 2); }
public Sensing(SkillUseButton _button) : base(_button) { }