Exemplo n.º 1
0
    public Adherent attach(Resource res) {
        follower.swapSprite();
        isCarrying = true;
        res.clearIntersectionAdherents();

        res.gameObject.transform.SetParent(follower.host.transform);
        res.gameObject.transform.localPosition = new Vector3(0, 0, 0);
        res.gameObject.transform.localEulerAngles = new Vector3(1, 0, 0);
        res.pauseCollision();
        return this;
    }