Assets\podskazka.cs(28,35): error CS1501: No overload for method 'Podik' takes 1 arguments
Assets\podskazka.cs(28,29): error CS0117: 'KeyCode' does not contain a definition for 'R'
Assets\podskazka.cs(24,29): error CS0117: 'KeyCode' does not contain a definition for 'R'
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class podskazka : MonoBehaviour
{
[SerializeField] GameObject pod;
[SerializeField] GameObject over;
[SerializeField] GameObject podUI;
public void Podik()
{
pod.SetActive(false);
podUI.SetActive(true);
over.SetActive(true);
}
public void Gover()
{
over.SetActive(false);
podUI.SetActive(false);
pod.SetActive(true);
}
private void FixedUpdate() {
if(Input.GetKey(KeyCode.R))
{
Podik();
}
if(Input.GetKey(KeyCode.R) && Podik(true))
{
Gover();
}
}
}