Exemplo n.º 1
0
    void Start()
    {
        cAthlete     = GetComponent <AI_Athlete>();
        cRouteFollow = GetComponent <AI_RouteFollow>();
        cAcc         = GetComponent <AI_Acc>();

        cRigid = GetComponent <Rigidbody>();
    }
Exemplo n.º 2
0
    void Start()
    {
        cRigid = GetComponent <Rigidbody>();

        cAthlete   = GetComponent <AI_Athlete>();
        cTakeShove = GetComponent <AI_TakesShove>();
        cGivShv    = GetComponent <AI_GivesShove>();
        cAcc       = GetComponent <AI_Acc>();
    }
Exemplo n.º 3
0
    void Start()
    {
        cAthlete = GetComponent <AI_Athlete>();
        cAcc     = GetComponent <AI_Acc>();

        cRigid = GetComponent <Rigidbody>();
        mRoute = GetComponentInChildren <AI_Route>();

        if (mRoute.mPath.Count != 0)
        {
            mCurGoal   = mRoute.mPath[0] + transform.position;
            mCurGoal.y = 0f;
            Instantiate(mPathMarker, mCurGoal, transform.rotation);
        }
        // ground entity.
        UT_Grounded grounder = GetComponentInChildren <UT_Grounded>();
        Vector3     pos      = transform.position;

        pos.y -= grounder.DisFromGround();
        transform.position = pos;
    }