rb.rotation = (Quaternion) stream.ReceiveNext();
Cannot implicitly convert type 'UnityEngine.Quaternion' to 'float'
public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
{
if (stream.IsWriting)
{
stream.SendNext(GetComponent<Rigidbody2D>().position);
stream.SendNext(GetComponent<Rigidbody2D>().rotation);
stream.SendNext(GetComponent<Rigidbody2D>().velocity);
}
else // обработка
{
GetComponent<Rigidbody2D>().position = (Vector2) stream.ReceiveNext();
GetComponent<Rigidbody2D>().rotation = (Quaternion) stream.ReceiveNext();
GetComponent<Rigidbody2D>().velocity = (Vector2) stream.ReceiveNext();
float lag = Mathf.Abs((float) (PhotonNetwork.Time - info.timestamp));
GetComponent<Rigidbody2D>().position += GetComponent<Rigidbody2D>().velocity * lag;
}
}
for(int i;i<enemy.lenght;i++)
{
if(enemy[i].transform.position.x<gameObject.transform.position.x)
{
Debug.Log("Koks");
break;
}
}
String[5] str = {"vcc", "gnd", "a0", "a2", "a3"};
for(int i;i<str.lenght;i++)
{
if(str[i]==a0)
{
Debug.Log("Koks");
break;
}
}
Running AVRDUDE...
avrdude_original: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude_original: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
Running AVRDUDE...
avrdude_original: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude_original: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
digispark arduino uno
vin 5v
gnd gnd
p0(d0) 11
p1(d1) 12
p2(d2) 13
p5(d5) 10