Esempio n. 1
0
    public void SimpleMove(Vector3 direction)
    {
        Vector3 directionNormalized = direction.normalized;

        Vector2 newDelta;

        newDelta.x = directionNormalized.x * _speed * Time.deltaTime;
        newDelta.y = directionNormalized.y * _speed * Time.deltaTime;
        _physicsController.AddDelta(newDelta);
    }