コード例 #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);
 }
コード例 #3
0
 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;
     }
 }