// Use this for initialization void Start() { characterCtrlr = GetComponent <CharacterController> (); camObj = transform.GetChild(0); camOffset = cam.transform.position - transform.position; gameCtrl = GameObject.Find("GameController").GetComponent <SoloGameController>(); // Get collider component coll = GetComponent <CapsuleCollider>(); // Get Aiming scripts horzAim = GetComponent <SoloAiming>(); vertAim = GetComponentInChildren <SoloAiming>(); ///// CHEWCK ME //initialise array values. for (int i = 0; i < maxAmountOfSteps; i++) { recordArray[i, 0] = Vector3.zero; recordArray[i, 1] = Quaternion.identity; recordArray[i, 2] = Quaternion.identity; recordArray[i, 3] = false; recordArray[i, 4] = 0f; recordArray[i, 5] = 0f; } tempArray[0] = Vector3.zero; tempArray[1] = Quaternion.identity; tempArray[2] = Quaternion.identity; tempArray[3] = false; tempArray[4] = 0f; tempArray[5] = 0f; }
void Start() { Cursor.lockState = CursorLockMode.Locked; gameCtrl = GameObject.Find("GameController").GetComponent <SoloGameController>(); playerCtrl = GameObject.Find("Player").GetComponent <SoloPlayerController>(); }