void Start() { myRigidbody = GetComponent <Rigidbody2D> (); groundCheck = gameObject.transform.Find("GroundCheck"); myAnimator = GetComponent <Animator> (); mySpriteRenderer = GetComponent <SpriteRenderer> (); myPlayerShoot = GetComponent <PlayerShoot> (); myPlayerGrabO = GetComponent <PlayerGrabObject> (); }
// Use this for initialization void Start() { item = null; // player starts with no item hasItem = false; // player starts with no item instance = this; }