public void DisableCameraBehaviour(CameraBehaviourMode mode) { _mBehaviourMode -= (int)mode; CameraBehaviour behaviour = null; if (_mCameraBehaviourList.TryGetValue(mode, out behaviour)) { behaviour.enabled = false; } }
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); }
public void AddCameraBehaviour(CameraBehaviourMode mode, CameraBehaviour behaviour) { _mCameraBehaviourList.Add(mode, behaviour); }
public bool isInCameraBehaviour(CameraBehaviourMode mode) { int result = _mBehaviourMode & (int)mode; return(result != 0); }