本文整理汇总了C#中KGFOrbitCam类的典型用法代码示例。如果您正苦于以下问题:C# KGFOrbitCam类的具体用法?C# KGFOrbitCam怎么用?C# KGFOrbitCam使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
KGFOrbitCam类属于命名空间,在下文中一共展示了KGFOrbitCam类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
void Start()
{
m_CameraSettings = GetComponent<KGFOrbitCam>();
GameObject player = GameObject.FindGameObjectWithTag( "Player" );
m_CameraLocator = player.transform.Find( "CameraLocator" );
m_CameraSettings.SetTarget( m_CameraLocator.gameObject );
}
示例2: Start
private KGFOrbitCam itsKGFOrbitCam; //reference to the orbitcam
#endregion Fields
#region Methods
public void Start()
{
itsKGFOrbitCam = KGFAccessor.GetObject<KGFOrbitCam>(); //get the KGFOrbitcam by using the KGFAccessor class
if(itsKGFOrbitCam != null)
{
float anOffset = itsKGFOrbitCam.GetEnviromentCollisionOffset(); //get the layermask for collisions
Debug.Log("camera is located: "+anOffset+" units in front of the collision");
}
}
示例3: Reset
public override void Reset ()
{
itsOrbitCam = null;
itsRotationVerticalUseLimits = false;
}