#send the code please

1 messages · Page 1 of 1 (latest)

hearty hollow
#

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;
}

}

maiden tundra
#

whats o2?

#

its problably giving a error there

hearty hollow
#

my bad mistyped, but still fixed and wouldn't work

maiden tundra
#

send the other code please

#

the one you are trying to call to

maiden tundra
hearty hollow
#

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.

maiden tundra
#

i got it

#

you are trying to call it if it was a function

#

go GameManager.value ++;

hearty hollow
#

ty

maiden tundra
#

tell me if it worked

hearty hollow
#

believe it worked, the error went away ty