void Start() { //calculate pivot distance cubesPivotDistance = cubeSize * cubeInRow / 2; //use this value to create pivot vector) cubesPivot = new Vector3(cubesPivotDistance, cubesPivotDistance, cubesPivotDistance); _PlayerMove = GameObject.Find("Player_Body").GetComponent <Test_PlayerMovement>(); a = Random.Range(2, 6); }
private void OnTriggerExit(Collider coll) { player = coll.GetComponent <Test_PlayerMovement>(); if (coll.gameObject.tag == "Player") { player.lockerClick = false; offLocker = false; } }
// Start is called before the first frame update void Start() { playerMove = GameObject.Find("Player_Body").GetComponent <Test_PlayerMovement>(); }
// Start is called before the first frame update void Start() { dayFogDensity = RenderSettings.fogDensity; tpm = GameObject.Find("Player_Body").GetComponent <Test_PlayerMovement>(); }