示例#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));
    }
示例#2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
示例#3
0
 private void Start()
 {
     scoreUI = GameObject.FindGameObjectWithTag("ScoreUIManager").GetComponent <ScoreUIManager>();
 }