Quantcast
Channel: Answers for "scene to scene variables"
Viewing all articles
Browse latest Browse all 8

Answer by blenderblender

$
0
0
//first script using UnityEngine; using System.Collections; public class First : MonoBehaviour { public int test=false; } //second script using UnityEngine; using System.Collections; public class second : MonoBehaviour { void Update () { if(Input.GetKey(KeyCode.A)) { First.test=true; //if you press a it change the variable from the //skript"first" } } }

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>