Exemple #1
0
    public void DisableCameraBehaviour(CameraBehaviourMode mode)
    {
        _mBehaviourMode -= (int)mode;

        CameraBehaviour behaviour = null;

        if (_mCameraBehaviourList.TryGetValue(mode, out behaviour))
        {
            behaviour.enabled = false;
        }
    }
Exemple #2
0
    public T GetCameraBehaviour <T>(CameraBehaviourMode mode) where T : CameraBehaviour
    {
        CameraBehaviour behaviour = null;

        if (!_mCameraBehaviourList.TryGetValue(mode, out behaviour))
        {
            return(null);
        }

        return((T)behaviour);
    }
        private bool CanFollow()
        {
            CameraBehaviourMode camMode = components.cameraParams.camMode;

            return(camMode == CameraBehaviourMode.FollowAndOrbit || camMode == CameraBehaviourMode.Follow);
        }
Exemple #4
0
 public void AddCameraBehaviour(CameraBehaviourMode mode, CameraBehaviour behaviour)
 {
     _mCameraBehaviourList.Add(mode, behaviour);
 }
Exemple #5
0
    public bool isInCameraBehaviour(CameraBehaviourMode mode)
    {
        int result = _mBehaviourMode & (int)mode;

        return(result != 0);
    }