// Use this for initialization void Start() { input = mainCamera.GetComponent <MyInputyController>(); hasGun = false; // Get the number of targets at the begining GameObject[] targets = GameObject.FindGameObjectsWithTag("target"); totalTargets = targets.Length; CursorPositioner.score = 0; }
void Start() { defaultPosZ = transform.localPosition.z; input = meMyselfEye.GetComponent <MyInputyController>(); score = 0; }
// Use this for initialization void Start() { laser = Instantiate(laserPrefab); laserTransform = laser.transform; input = MainCamera.GetComponent <MyInputyController>(); }