Exemple #1
0
        public void SyncKillRPC(int attackerViewID)
        {
            var attacker = PhotonView.Find(attackerViewID).gameObject.GetComponent <IAttacker>();

            Assert.IsNotNull(attacker);

            BattleStream.OnNextKill(attacker);
        }
Exemple #2
0
        public void SyncDieRPC(int targetViewID)
        {
            var target = PhotonView.Find(targetViewID).gameObject.GetComponent <IOnAttacked>();

            Assert.IsNotNull(target);

            BattleStream.OnNextDie(target);
        }