public static void Fire(ShooterActor shooterActor, Vector3 firePosition) { if (photonView == null) { return; } photonView.RPC("PhotonEventSender_Fire", PhotonTargets.All, Engine.ActorManager.GetPhotonView(shooterActor).viewID, firePosition); }
public static void Roll(ShooterActor shooterActor, Vector3 direction) { if (photonView == null) { return; } photonView.RPC("PhotonEventSender_Roll", PhotonTargets.All, Engine.ActorManager.GetPhotonView(shooterActor).viewID, direction); }
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; } }