예제 #1
0
    public override void OnStartAuthority()
    {
        base.OnStartAuthority();

        if (hasAuthority && NetworkClient.active)
        {
            FalconHandler.ActivateFalcon();

            PlayerCamera.snooperCamera.transform.parent           = m_pointOfView;
            PlayerCamera.snooperCamera.transform.localPosition    = Vector3.zero;
            PlayerCamera.snooperCamera.transform.localEulerAngles = Vector3.zero;
        }
    }
예제 #2
0
    public override void OnStartAuthority()
    {
        base.OnStartAuthority();

        if (hasAuthority && NetworkClient.active)
        {
            FalconHandler.ActivateFalcon();

            PlayerCamera.roamerCamera.transform.parent           = m_pointOfView;
            PlayerCamera.roamerCamera.transform.localPosition    = Vector3.zero;
            PlayerCamera.roamerCamera.transform.localEulerAngles = Vector3.zero;

            m_animator.SetBool("Ready", true);

            if (GalaxyNetworkManager.localConfiguration.isHuman)
            {
                transform.eulerAngles = new Vector3(0, -90, 0);
            }
            else
            {
                transform.eulerAngles = new Vector3(0, 90, 0);
            }
        }
    }