本文整理汇总了C#中Camera类的典型用法代码示例。如果您正苦于以下问题:C#Camera类的具体用法?C#Camera怎么用?C#Camera使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:Start
//Usethisforinitialization
voidStart()
{
//ScriptReferences
shipGraphics=GetComponent
();
shipPhysicsScript=GetComponent();
//ComponentVariables
cam=GetComponentInChildren();
body=GetComponent();
model=transform.Find("Model").gameObject;
capsuleCollider=GetComponentInChildren();
boxCollider=GetComponentInChildren();
lockSound=GetComponent();
//ControlVariables
mouseSensitivity=8.0f;
//mouseThreshold=8.0f;
//buttonSensitivity=0.05f;
//buttonThreshold=0.05f;
horTranslation=0.0f;
verTranslation=0.0f;
enemyNoLock=(Material)Resources.Load("Crosshair");
enemyLock=(Material)Resources.Load("Crosshair_Enemy");
trackedObject=null;
trackingResults=null;
shootWaitTime=0.0f;
targetTime=0.0f;
hits=0;
}
原文链接:http://www.jxszl.com/biancheng/C/556658.html