예제 #1
0
    void Voando()
    {
        if (Input.GetKey(KeyCode.W))
        {
            pendulo.player.velocity += pendulo.player.velocity.normalized * 2;
        }

        transform.localPosition = pendulo.MovePlayer(transform.localPosition, previousPosition, Time.deltaTime);
        previousPosition        = transform.localPosition;
    }
예제 #2
0
 void Update()
 {
     transform.localPosition = pendulo.MovePlayer(transform.localPosition, Time.deltaTime);
 }