here is the script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class playermovement : MonoBehaviour
{
public CharacterController cont;
public float speed = 0.4f;
public float gravity = 0.5;
Vector3 velocity;
// Update is called once per frame
void Update()
{
float x = Input.GetAxis("Horizontal");
float z = Input.GetAxis("Vertical");
Vector3 move = transform.right * x + transform.forward * z;
cont.Move(move * speed * Time.timeScale);
velocity.y += gravity * Time.timeScale;
cont.Move(velocity * Time.time.Scale);
}
}
and here is the problem pls help
problem #1
Assets\playermovement.cs(10,28): error CS0664: Literal of type double cannot be implicitly converted to type ‘float’; use an ‘F’ suffix to create a literal of this type
problem #2
Assets\playermovement.cs(26,40): error CS1061: ‘float’ does not contain a definition for ‘Scale’ and no accessible extension method ‘Scale’ accepting a first argument of type ‘float’ could be found (are you missing a using directive or an assembly reference?)