Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Also, If you just want the code without the comments, here it is

SCRIPT 1

public class Script1 : MonoBehaviour
{
    public float CoolVariable = 1;
}

SCRIPT 2

public Script1 Script1;
Debug.Log(Script1.CoolVariable)