ChaosTheosis

PlayerPhoton

Feb 15th, 2015
391
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using Photon;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using UnityEngine;
  6.  
  7.  
  8. public class PlayerInfoPHOTON
  9. {
  10.     public int airKills;
  11.     public int assistancePt;
  12.     public bool dead;
  13.     public int die;
  14.     public string guildname = string.Empty;
  15.     public string id;
  16.     public int kills;
  17.     public int maxDamage;
  18.     public string name = "Guest";
  19.     public PhotonPlayer networkplayer;
  20.     public string resourceId = "not choose";
  21.     public bool SET;
  22.     public int totalCrawlerKills;
  23.     public int totalDamage;
  24.     public int totalDeaths;
  25.     public int totalJumperKills;
  26.     public int totalKills;
  27.     public int totalKillsInOneLifeAB;
  28.     public int totalKillsInOneLifeHard;
  29.     public int totalKillsInOneLifeNormal;
  30.     public int totalNonAIKills;
  31.  
  32.   public void initAsGuest()
  33.     {
  34.         string namecfg = new StreamReader("name.txt", true).ReadToEnd();
  35.         if (!namecfg.Equals("") && !namecfg.Equals(" "))
  36.         {
  37.             namecfg = namecfg;
  38.         }
  39.        
  40.        
  41.         string guildcfg = new StreamReader("guildname.txt", true).ReadToEnd();
  42.         if (!guildcfg.Equals("") && !guildcfg.Equals(" "))
  43.         {
  44.             guildcfg = guildcfg;
  45.         }
  46.        
  47.         this.name = namecfg;
  48.         this.guildname = guildcfg;
  49.         this.kills = 0;
  50.         this.die = 0;
  51.         this.maxDamage = 0;
  52.         this.totalDamage = 0;
  53.         this.assistancePt = 0;
  54.         this.dead = false;
  55.         this.resourceId = "not choose";
  56.         this.SET = false;
  57.         this.totalKills = 0;
  58.         this.totalDeaths = 0;
  59.         this.totalKillsInOneLifeNormal = 0;
  60.         this.totalKillsInOneLifeHard = 0;
  61.         this.totalKillsInOneLifeAB = 0;
  62.         this.airKills = 0;
  63.         this.totalCrawlerKills = 0;
  64.         this.totalJumperKills = 0;
  65.         this.totalNonAIKills = 0;
  66.         }
  67.     }
RAW Paste Data