Beispiel #1
0
    // public bool reverse = true;

    //public GameObject bounce;


    // Use this for initialization
    void Start()
    {
        rb2d = GameObject.Find("player").GetComponent <Rigidbody2D>();
        hook = GetComponent <Grappling_hook>();
        //anim = bounce.GetComponent<Animator>();
        playerCollider = GetComponent <BoxCollider2D>();
        cl             = GameObject.Find("player").GetComponent <PlayerMove>();
        player         = GameObject.Find("player");
        //anim = reverser.GetComponent<Animator>();
        originalPosition = player.transform.position;
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     bulletSpawn = GameObject.Find("bulletSpawn");
     gun         = GameObject.Find("gunRender");
     gunRender   = gun.GetComponent <gunRenderBehavior>();
     heatLevel   = 1;
     gh          = GetComponent <Grappling_hook>();
     rb2D        = GetComponent <Rigidbody2D>();
     Cam         = Camera.main;
     camMove     = Cam.GetComponent <CameraFollow>();
 }