#send the code please
1 messages · Page 1 of 1 (latest)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static int value;
public static int multiplier;
void Start()
{
value = 0;
multiplier = 1;
}
}
my bad mistyped, but still fixed and wouldn't work
no problem
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Game : MonoBehaviour
{
public void Increment()
{
GameManager.value()
}
}
when calling Gamemanager it doesn't light up like it usually should so i don't feel as if it's pulling the script.
i got it
you are trying to call it if it was a function
go GameManager.value ++;
ty
tell me if it worked
believe it worked, the error went away ty