Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (PhotonManager.playerID != 0)
     {
         if (PhotonManager.playerID == 1)
         {
             transform.position = Vector3.Lerp(transform.position, targetPosition, 0.5f);
         }
     }
     else
     {
         Move();
         photonManager.BarPosition(transform.position.x, transform.position.y, transform.position.z);
     }
 }