da ktoś komende na poruszanie się postacią w dol?
bo potrzebuje a nic mi nie wychodzi
tu jest skrypt na poruszanie się do gory ale w dol to nie wiem
using UnityEngine;
using System.Collections;
public class Jump : MonoBehaviour
{
public float speed = 3f;
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKey(KeyCode.W))
{
transform.Translate(Vector3.up * speed * Time.deltaTime, Space.World);
}
}
}