void Start() { if ( obj == null ) obj = GameObject.Find( "UIDisplay" ).GetComponent<InfoDisplay>(); SpawnObject = GetComponentInChildren<CountDisplay>(); MiniGames = GetComponentsInChildren<MiniGameActive>(); TimeSoFar = 0.0; }
public ActionResult Show(int wordToSearchId, int countDisplayId) { CountDisplay countDisplay = CountDisplay.Find(countDisplayId); Dictionary <string, object> model = new Dictionary <string, object>(); WordToSearch wordToSearch = WordToSearch.Find(wordToSearchId); model.Add("countDisplay", countDisplay); model.Add("wordToSearch", wordToSearch); return(View(model)); }
static void Main(string[] args) { Display d1 = new Display(new StringDisplayImpl("Hello, Japan.")); Display d2 = new CountDisplay(new StringDisplayImpl("Hello, World.")); CountDisplay d3 = new CountDisplay(new StringDisplayImpl("Hello, Universe.")); d1.Show(); d2.Show(); d3.Show(); d3.MultiDisplay(5); }
// Start is called before the first frame update void Start() { Display d1 = new Display(new StringDisplayImpl("Hello, Japan.")); Display d2 = new CountDisplay(new StringDisplayImpl("Hello, World.")); CountDisplay d3 = new CountDisplay(new StringDisplayImpl("Hello, Universe.")); d1.Singledisplay(); d2.Singledisplay(); d3.Singledisplay(); d3.MultiDisplay(5); }
public ActionResult DeleteAll() { CountDisplay.ClearAll(); return(View()); }
// Use this for initialization void Start() { self = GetComponent<CountDisplay>(); }