private void SyncDebuffRPC(int targetViewID, DebuffType debuffType, float duration) { var target = PhotonView.Find(targetViewID).gameObject.GetComponent <IOnDebuffed>(); Assert.IsNotNull(target); var flow = new DebuffFlow(target, debuffType, duration); SkillStream.OnNextDebuff(flow); }
public static void OnNextDebuff(DebuffFlow DebuffFlow) { _debuffSubject.OnNext(DebuffFlow); }