Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        startPoint = transform.position;

        groundWallChecks = new GroundWallChecks(transform.gameObject); //check to see if touching ground or wall

        cameraMainComponent = GameObject.Find("MainCamera");
        camShake            = cameraMainComponent.GetComponent <CameraShake>();
    }
Exemplo n.º 2
0
 // Use this for initialization
 private void Start()
 {
     rb = GetComponent <Rigidbody2D>();
     groundWallChecks = new GroundWallChecks(transform.gameObject); //check to see if touching ground or wall
 }