// Use this for initialization void Start() { walker = GameObject.FindGameObjectWithTag("WalkHome").GetComponent<SideScrollWalkScript>(); eventManager = GameObject.FindGameObjectWithTag ("EventManager").GetComponent<EventManagerScript>(); textPos = transform.GetChild (0).transform.position; targetTextColor = Color.black; targetTextColor.a = 0f; }
// Use this for initialization void Start() { walker = GameObject.FindGameObjectWithTag("WalkHome").GetComponent<SideScrollWalkScript>(); sr = GetComponent<SpriteRenderer>(); currentColor = Color.black; currentColor.a = 1f; targetColor = currentColor; sr.color = currentColor; Transition (new Vector3(0f, 0f, -10f), "Day 1"); }
// Use this for initialization void Start() { slides = GetComponent<SlidesScript>(); slides.starting = false; familyManager = GameObject.FindGameObjectWithTag("FamilyManager").GetComponent<FamilyManagerScript>(); itemPosManager = GameObject.FindGameObjectWithTag("ItemPositions").GetComponent<ItemPositionManagerScript>(); transition = GameObject.FindGameObjectWithTag("Transition").GetComponent<TransitionScript>(); walkHome = GameObject.FindGameObjectWithTag("WalkHome").GetComponent<SideScrollWalkScript>();; audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent<AudioManagerScript>(); baking = GetComponent<BakingScript>(); finances = GetComponent<FinancesScript>(); customerManager = GetComponent<CustomerManagerScript>(); conversationManager = GetComponent<ConversationManagerScript>(); inventory = GetComponent<InventoryScript>(); input = GetComponent<InputManagerScript>(); phase = "setup"; dailyTransactions = new Transaction[customersToday]; }