本文整理汇总了C#中Calculator.getMasterBoolLength方法的典型用法代码示例。如果您正苦于以下问题:C# Calculator.getMasterBoolLength方法的具体用法?C# Calculator.getMasterBoolLength怎么用?C# Calculator.getMasterBoolLength使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Calculator
的用法示例。
在下文中一共展示了Calculator.getMasterBoolLength方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
public void Start()
{
plsh = GetComponent<playerShooting>();
rb = GetComponent<Rigidbody>();
col = GetComponent<SphereCollider>();
calculator = GameObject.FindGameObjectWithTag("scripts").GetComponent<Calculator>();
sightConstant = calculator.getSightConstant();
fieldofViewAngle = calculator.getFieldOfView();
sensitivity = calculator.getSensitivity();
rotateToTargetSpeed = calculator.getRotateSpeed();
index = calculator.addBot(this);
targets = calculator.getTargets(index);
col.radius= (float)sightConstant;
shootFlag = false;
playerInSight = false;
moveBool = new bool[calculator.getMasterBoolLength()];
bestPoint = transform.position;
bestPoints = new Vector3[moveBool.Length];
bestPointsSV = new float[moveBool.Length];
team = GetComponent<TeamMember>().teamID;
teamFinder();
if (team == 1)
{
goal = new Vector3(-37f, -30f, 28f);
}
else if(team == 2)
{
goal = new Vector3(64f, -30f, -43f);
}
}