Пример #1
0
 void Start()
 {
     throwState          = ThrowState.None;
     ikController        = GetComponent <IKController>();
     ikCatchController   = GetComponent <IKCatchController>();
     ikDeflectController = GetComponent <IKDeflectController>();
     animator            = GetComponent <Animator>();
 }
Пример #2
0
    void Start()
    {
        ikCatchController = GetComponent <IKCatchController>();
        ikCatchController.setActive(true);

        ikDeflectController = GetComponent <IKDeflectController>();
        ikDeflectController.setActive(true);

        animator = GetComponent <Animator>();
    }
Пример #3
0
    void Start()
    {
        ikCatchController = GetComponent <IKCatchController>();
        ikCatchController.setActive(true);

        ikDeflectController = GetComponent <IKDeflectController>();
        ikDeflectController.setActive(true);

        // Supply the bot with a new ball
        Vector3 ballPos = transform.position + transform.forward * 0.5f;

        ballPos.y += 1.5f;
        Instantiate(ballPrefab, ballPos, Quaternion.identity);
    }
Пример #4
0
    void Start()
    {
        ikController = GetComponent <IKController>();
        ikController.setIKActive(true, enabledIKGoals);

        ikCatchController = GetComponent <IKCatchController>();
        ikCatchController.setActive(true);

        ikDeflectController = GetComponent <IKDeflectController>();
        ikDeflectController.setActive(true);

        ikThrowController = GetComponent <IKThrowController>();

        playerCameraController = GetComponent <PlayerCameraController>();

        animator = GetComponent <Animator>();
    }