예제 #1
0
 public static void ShowTransformedFromOthers(ZombieActor zombieActor)
 {
     if (photonView == null)
     {
         return;
     }
     photonView.RPC("PhotonEventSender_ShowTransformedFromOthers", PhotonTargets.All, Engine.ActorManager.GetPhotonView(zombieActor).viewID);
 }
예제 #2
0
 public static void Attack(ZombieActor zombieActor)
 {
     if (photonView == null)
     {
         return;
     }
     photonView.RPC("PhotonEventSender_Attack", PhotonTargets.All, Engine.ActorManager.GetPhotonView(zombieActor).viewID);
 }
 protected virtual void Start()
 {
     if (m_actor is ZombieActor)
     {
         m_zombieActor = m_actor as ZombieActor;
     }
     else
     {
         Debug.LogError("MUST set a ZombieActor in ActorController_ZombieActor");
         m_zombieActor = null;
     }
 }