예제 #1
0
    void Start()
    {
        // Allocate space for two buffers for storing and passing shadow poses
        this.buffer1 = this.NewTransformArray();
        this.buffer2 = this.NewTransformArray();

        // Get a reference to our lean ShadowController
        this.lean = this.GetComponent <ShadowLeanControllerCompleted>();

        // Get a reference to our animation ShadowController
        this.anim = this.GetComponent <ShadowAnimationController>();

        // Set the weight
        this.weight = new Slider(4.0f);

        // Call each ShadowController's ControlledStart() function
        this.ControlledStartAll();
    }
    void Start()
    {
        // Allocate space for two buffers for storing and passing shadow poses
        this.buffer1 = this.NewTransformArray();
        this.buffer2 = this.NewTransformArray();

        // Get a reference to our lean ShadowController
        this.lean = this.GetComponent<ShadowLeanControllerCompleted>();

        // Get a reference to our animation ShadowController
        this.anim = this.GetComponent<ShadowAnimationController>();

        // Set the weight
        this.weight = new Slider(4.0f);

        // Call each ShadowController's ControlledStart() function
        this.ControlledStartAll();
    }