Esempio n. 1
0
 public static void Fire(ShooterActor shooterActor, Vector3 firePosition)
 {
     if (photonView == null)
     {
         return;
     }
     photonView.RPC("PhotonEventSender_Fire", PhotonTargets.All, Engine.ActorManager.GetPhotonView(shooterActor).viewID, firePosition);
 }
Esempio n. 2
0
        public static void Roll(ShooterActor shooterActor, Vector3 direction)
        {
            if (photonView == null)
            {
                return;
            }

            photonView.RPC("PhotonEventSender_Roll", PhotonTargets.All, Engine.ActorManager.GetPhotonView(shooterActor).viewID, direction);
        }
Esempio n. 3
0
 protected virtual void Start()
 {
     if (m_actor is ShooterActor)
     {
         m_shooterActor = m_actor as ShooterActor;
     }
     else
     {
         Debug.LogError("MUST set a ShooterActor in ActorController_ShooterActor");
         m_shooterActor = null;
     }
 }