// Use this for initialization private void Awake() { facingRight = true; grounded = true; initRotation = transform.rotation; myRigidbody2D = GetComponent <Rigidbody2D>(); characterAnim = GetComponent <Animator>(); playerGraphics = transform.Find("Graphics"); playerHead = transform.Find("RotatingHead"); conveyor = FindObjectOfType <PlayerConveyorBelt>(); grabBox = FindObjectOfType <GrabBox>(); resetSpeed = movementSpeed; }
//private Transform boxesParent; private void Start() { conveyor = FindObjectOfType <PlayerConveyorBelt>(); //boxesParent = GameObject.FindGameObjectWithTag("BoxesParent").transform; }