Beispiel #1
0
 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);
 }
Beispiel #2
0
    private void OnTriggerExit(Collider coll)
    {
        player = coll.GetComponent <Test_PlayerMovement>();

        if (coll.gameObject.tag == "Player")
        {
            player.lockerClick = false;
            offLocker          = false;
        }
    }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     playerMove = GameObject.Find("Player_Body").GetComponent <Test_PlayerMovement>();
 }
Beispiel #4
0
 // Start is called before the first frame update
 void Start()
 {
     dayFogDensity = RenderSettings.fogDensity;
     tpm           = GameObject.Find("Player_Body").GetComponent <Test_PlayerMovement>();
 }