Ejemplo n.º 1
0
    private void Start()
    {
        sM             = scoreUI.GetComponent <ScoreUIManager>();
        validationGot += ValidationReceipt;
        gamepacketGot += GamePacketReceipt;

        // Send out a packet to the server telling it we have started our game.
        StartCoroutine(ValidateClient(rootURL + validationURL, PlayerPrefs.GetString("LocalWallet"), ScoreKeeper.gameVersion, validationGot));
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Ejemplo n.º 3
0
 private void Start()
 {
     scoreUI = GameObject.FindGameObjectWithTag("ScoreUIManager").GetComponent <ScoreUIManager>();
 }