Class MainCameraPanningHandlerBase
Inheritance
MainCameraPanningHandlerBase
Assembly: cs.temp.dll.dll
Syntax
public abstract class MainCameraPanningHandlerBase : MonoBehaviour, IMainCameraPanningHandler, IMainCameraControlHandler
Fields
currPanDirection
Declaration
protected Vector3 currPanDirection
Field Value
followTarget
Declaration
protected Transform followTarget
Field Value
Type |
Description |
Transform |
|
triggerPointInputInactive
Declaration
protected bool triggerPointInputInactive
Field Value
Properties
cameraController
Declaration
protected IMainCameraController cameraController { get; }
Property Value
controls
Declaration
protected IGameControlsManager controls { get; }
Property Value
Type |
Description |
IGameControlsManager |
|
CurrModifier
Declaration
protected float CurrModifier { get; set; }
Property Value
Type |
Description |
System.Single |
|
CurrOffsetX
Declaration
public float CurrOffsetX { get; }
Property Value
Type |
Description |
System.Single |
|
CurrOffsetZ
Declaration
public float CurrOffsetZ { get; }
Property Value
Type |
Description |
System.Single |
|
CurrPanningSpeed
Declaration
public float CurrPanningSpeed { get; }
Property Value
Type |
Description |
System.Single |
|
gameMgr
Declaration
protected IGameManager gameMgr { get; }
Property Value
Type |
Description |
IGameManager |
|
IsActive
Declaration
public bool IsActive { get; set; }
Property Value
IsFollowingTarget
Declaration
public bool IsFollowingTarget { get; }
Property Value
IsPanning
Declaration
public bool IsPanning { get; }
Property Value
IsPointerInputActive
Declaration
public bool IsPointerInputActive { get; protected set; }
Property Value
LastPanDirection
Declaration
public Vector3 LastPanDirection { get; protected set; }
Property Value
Methods
Apply()
Declaration
Init(IGameManager)
Declaration
public void Init(IGameManager gameMgr)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
LookAt(Vector3, Boolean, Single)
Make the camera look at a target position and return the final position while considering the offset values
Declaration
public void LookAt(Vector3 targetPosition, bool smooth, float smoothFactor = 0.1F)
Parameters
Type |
Name |
Description |
Vector3 |
targetPosition |
|
Boolean |
smooth |
|
System.Single |
smoothFactor |
|
OnInit()
Declaration
protected virtual void OnInit()
OnNonFollowTargetPanning()
Declaration
protected virtual void OnNonFollowTargetPanning()
PreUpdateInput()
Declaration
public void PreUpdateInput()
SetFollowTarget(Transform, Boolean)
Updates the target that the camera will be following
Declaration
public void SetFollowTarget(Transform transform, bool lockMovementUntilCentered = true)
Parameters
Type |
Name |
Description |
Transform |
transform |
|
Boolean |
lockMovementUntilCentered |
|
SetPosition(Vector3)
Declaration
public void SetPosition(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
UpdateInput()
Declaration
public virtual void UpdateInput()
Implements