예제 #1
0
    // Use this for initialization
    void Start()
    {
        currentNodeIndex = 0;
        nodeCount        = 0;
        currentSpeed     = 0f;
        initializePath(path);

        GetComponent <Rigidbody>().centerOfMass = centreOfMass;
        pickup     = GetComponent <ActivatePickup>();
        raceEntity = GetComponent <RaceEntity>();
    }
예제 #2
0
 private void Start()
 {
     temprb        = GetComponent <Rigidbody>();
     pickupHandler = GetComponent <ActivatePickup>();
 }