Example #1
0
    // public bool                     mPretendEngaged = false;

    void Start()
    {
        cRigid      = GetComponent <Rigidbody>();
        cAthlete    = GetComponent <AI_Athlete>();
        cTakesShove = GetComponent <AI_TakesShove>();

        // for now everyone can accelerate at 5 meters/s^2
        cAthlete.mAcc = 5f;
    }
Example #2
0
    void Start()
    {
        cRigid = GetComponent <Rigidbody>();

        cAthlete   = GetComponent <AI_Athlete>();
        cTakeShove = GetComponent <AI_TakesShove>();
        cGivShv    = GetComponent <AI_GivesShove>();
        cAcc       = GetComponent <AI_Acc>();
    }
Example #3
0
    private Rigidbody cRigid;                       // for momentum

    private void Start()
    {
        cAth        = GetComponent <AI_Athlete>();
        cTakesShove = GetComponent <AI_TakesShove>();
        cRigid      = GetComponent <Rigidbody>();
    }