public class Rand : MonoBehaviour {
int dawn;
public SpawnBox sB;
void Start()
{ }
void Update () {
if(Input.GetKey(KeyCode.Q))
{
dawn = Random.Range(0, 10);
if(dawn == 3)
{
sB.Spawn();
}
else
{
print(dawn);
}
}
}
}