Esempio n. 1
0
 private void SearchForceManager()
 {
     foreach (var e in this.EntityManager.AllEntities)
     {
         var f = e.FindComponent <ForcesManager>();
         if (f != null)
         {
             this.forcesManager = f;
             break;
         }
     }
 }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        forces = GetComponent<ForcesManager>();
        body = GetComponent<Rigidbody>();
        rayman = GetComponent<CartRaycastManager>();
        tires = GetComponent<TireManager>();

        curFwd = transform.forward;
        curNormal = transform.up;

        body.constraints = RigidbodyConstraints.FreezeRotation;
    }
Esempio n. 3
0
 void Start()
 {
     forces = GetComponent<ForcesManager>();
     cart = GetComponent<CartManager>();
     tires = GetComponent<TireManager>();
 }