Ejemplo n.º 1
0
 private void Start()
 {
     Time.timeScale            = 1;
     animator                  = GetComponent <Animator>();
     FirstEdgePositionGO       = GameObject.FindGameObjectWithTag(edgePos);
     createPlatformsController = FindObjectOfType <CreatePlatformsController>();
     cameraMove                = FindObjectOfType <CameraMove>();
     pogruzhikMoveController   = FindObjectOfType <PogruzhikMoveController>();
     goldenCubeInstant         = FindObjectOfType <GoldenCubeInstant>();
 }
Ejemplo n.º 2
0
    private void Start()
    {
        createPlatformsController = FindObjectOfType <CreatePlatformsController>();
        blockResetTransform       = FindObjectOfType <BlockResetTransform>();
        blockCreatorContoller     = FindObjectOfType <BlockCreatorContoller>();
        blockInstantiate          = FindObjectOfType <BlockInstantiate>();
        gameObjectPlayer          = GameObject.FindGameObjectWithTag("Player");

        difference = transform.position - gameObjectPlayer.transform.position;
        difference = new Vector3(difference.x + offsetX, difference.y, difference.z);
    }
Ejemplo n.º 3
0
 private void Start()
 {
     createPlatformsController = FindObjectOfType <CreatePlatformsController>();
 }