Ejemplo n.º 1
0
        private void SyncDebuffRPC(int targetViewID, DebuffType debuffType, float duration)
        {
            var target = PhotonView.Find(targetViewID).gameObject.GetComponent <IOnDebuffed>();

            Assert.IsNotNull(target);

            var flowEntity = new DebuffFlowEntity(target, debuffType, duration);

            SkillStream.OnNextDebuff(flowEntity);
        }
Ejemplo n.º 2
0
 public static void OnNextDebuff(DebuffFlowEntity debuffFlowEntity)
 {
     _debuffSubject.OnNext(debuffFlowEntity);
 }