Exemplo n.º 1
0
    // 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;
    }
Exemplo n.º 2
0
    //private Transform boxesParent;

    private void Start()
    {
        conveyor = FindObjectOfType <PlayerConveyorBelt>();
        //boxesParent = GameObject.FindGameObjectWithTag("BoxesParent").transform;
    }