示例#1
0
    // 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;
        }
    }
示例#2
0
 void Start()
 {
     PipeObject = GetComponent <Rigidbody2D>();
     SS         = GameObject.FindGameObjectWithTag("SkorDuvar").GetComponent <SkorScript>();
 }