// Update is called once per frame void Update() { plane = ObserverScript.CheckPlaneToSphereCollision(this); ResolvePlaneCollision(); SphereScript sphere2 = ObserverScript.CheckSphereOnSphereCollisions(this); }
public int resoSelect; //store set resolution private void Awake() { //awake triggers before start if (Instance == null) { //check for other observer scripts //?? Instance = this; //if no ither found set this to a percistant game object DontDestroyOnLoad(gameObject); } else { //if other instance found clear this game object Destroy(gameObject); } }
// Start is called before the first frame update void Start() { gameData = GetComponent <ObserverScript>(); setPlaceMats(); }
void Start() { Observer = GameObject.Find("Observer"); observerScript = Observer.GetComponent <ObserverScript>(); player = GetComponent <Player>(); }