//Find references on class initialisation private void Start() { Instance = this; cNetworkManager = GameObject.Find("_NetworkManager").GetComponent <NetworkManager>(); cUnitCollection = UnitCollection.Instance; goUnitVault = GameObject.Find("_ClientUnitVault"); }
public string sDeckDataParse() { SendRecievePlayerData cSendRecievePlayerData = GameObject.Find("_NetworkManager").GetComponent <SendRecievePlayerData>(); string sep1 = "*"; string sep2 = "("; string sParse = sName + sep2 + cSendRecievePlayerData.sPHPReady(Hero.sName) + sep2 + cSendRecievePlayerData.sPHPReady(sFaction) + sep2; string sUnitParse = ""; int iUnitIndex = 0; foreach (Unit cUnit in Units) { sUnitParse = sUnitParse + cUnit.sId; if (iUnitIndex != Units.Count) { sUnitParse = sUnitParse + sep1; } } sParse = sParse + sUnitParse; return(sParse); }
//Find references on class initialisation void Start() { cSendRecievePlayerData = gameObject.GetComponent <SendRecievePlayerData> (); }