string correctGreeting() { string retval; if (direction == 1) { retval = btnArigatou.name; } else { int day = RestaurantGlobals.getDay(); if (day == 1) { retval = btnOhayou.name; } else if (day == 2) { retval = btnKonnichiwa.name; } else { retval = btnKonwbanwa.name; } } return(retval); }
// Update is called once per frame void Update() { anim.SetInteger("day", RestaurantGlobals.getDay()); }