Example #1
0
 public override void Update()
 {
     if (isServer)
     {
         if (incontrol)
         {
             if (car)
             {
                 car.Controller(new Vector2(inputTemp.x, inputTemp.y), brakeTemp);
             }
         }
         if (car)
         {
             car.StartEngine(hasDriver);
         }
     }
     base.Update();
 }
Example #2
0
    void Update()
    {
        if (isServer)
        {
            if (incontrol)
            {
                if (car)
                {
                    car.Controller(new Vector2(inputTemp.x, inputTemp.y), brakeTemp);
                }
            }

            if (car)
            {
                car.StartEngine(hasDriver);
            }
        }
        UpdateFunction();
    }