public void ReloadTable() { if (gameObject != null) { if (gameObject.GetComponent <PUSimpleTableUpdateScript> () == null) { tableUpdateScript = (PUSimpleTableUpdateScript)gameObject.AddComponent(typeof(PUSimpleTableUpdateScript)); tableUpdateScript.table = this; } ClearTable(); ReloadTableCells(); } }
public void ReloadTable() { if(gameObject.GetComponent<PUSimpleTableUpdateScript>() == null){ tableUpdateScript = (PUSimpleTableUpdateScript)gameObject.AddComponent (typeof(PUSimpleTableUpdateScript)); tableUpdateScript.table = this; } ClearTable (); ReloadTableCells (); }