Script Speed Ema Is
Script Speed Ema Is
using UnityEngine;
using UnityEngine.InputSystem;
using System.Collections;
public class SpeedScript : MonoBehaviour
{
public InputActionProperty buttonPressed;
public float speed;
private Coroutine speedCoroutine;
-----------------------------------------------------------------------------------
// script 2
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
void Update()
{
gameObject.transform.Rotate(speedScript.speed,0,0);
}
}