// {
if (Input.GetKeyDown(KeyCode.W) == true)
{
myRigidbody.velocity = Vector2.up * 1;
}
if (Input.GetKeyUp(KeyCode.W) == true)
{
myRigidbody.velocity = Vector2.zero;
}
if (Input.GetKeyDown(KeyCode.A) == true)
{
myRigidbody.transform.Rotate(new Vector3(0, 0, 90));
}
}
// {
if (Input.GetKeyDown(KeyCode.W) == true)
{
myRigidbody.velocity = Vector2.up * 1;
}
if (Input.GetKeyUp(KeyCode.W) == true)
{
myRigidbody.velocity = Vector2.zero;
}
if (Input.GetKeyDown(KeyCode.A) == true)
{
myRigidbody.transform.Rotate(new Vector3(0, 0, 90));
}
}