// Start is called before the first frame update void Awake() { try{ textSkorPlayer1.text = skorPlayer1.ToString(); textSkorPlayer2.text = skorPlayer2.ToString(); } catch (System.Exception) { } if (instance == null) { instance = this; } }
void Start() { PipeObject = GetComponent <Rigidbody2D>(); SS = GameObject.FindGameObjectWithTag("SkorDuvar").GetComponent <SkorScript>(); }