Esempio n. 1
0
    // Use this for initialization
    void Awake()
    {
        anim = GetComponent <Animator>();
        body = GetComponent <Rigidbody>();
        rend = GetComponentInChildren <Renderer>();

        controller = new ControllerLayer()
        {
            isUpper = isUpper
        };
    }
Esempio n. 2
0
    // Use this for initialization
    void Awake()
    {
        anim = GetComponent<Animator>();
        body = GetComponent<Rigidbody>();
        rend = GetComponentInChildren<Renderer>();

        controller = new ControllerLayer() {isUpper = isUpper};
    }