void Start() { sound = GameObject.FindGameObjectWithTag("Sound").GetComponent <SoundEffectMixer>(); kitchen = GameObject.FindGameObjectWithTag("Kitchen").GetComponent <Tilemap>(); grid = GameObject.FindGameObjectWithTag("Grid").GetComponent <Grid>(); timer = 0; }
void Awake() { if (Instance != null) { Debug.LogError("Multiple instances of SoundEffectMixer"); } Instance = this; }
// Start is called before the first frame update void Start() { request = possibleRequest.recipes[UnityEngine.Random.Range(0, possibleRequest.recipes.Count)]; if (request.name == "Soup") { recipeIngredients.GetComponent <SpriteRenderer>().sprite = soupRecipe; } else if (request.name == "TomatoSoup") { recipeIngredients.GetComponent <SpriteRenderer>().sprite = tomatoSoupRecipe; } sound = GameObject.FindGameObjectWithTag("Sound").GetComponent <SoundEffectMixer>(); spawnPos = GameObject.FindGameObjectsWithTag("Spawn"); }
// Start is called before the first frame update void Start() { tilemap = GameObject.FindGameObjectWithTag("Wall").GetComponent <Tilemap>(); //goal = GameObject.FindGameObjectWithTag("Goal"); goal = GameObject.Find("Goal1"); goaltwo = GameObject.Find("Goal2"); if (goaltwo) { Debug.Log("Not null"); } if (!goaltwo) { Debug.Log("null"); } state = 3; count = 0; time = 0; kitchen = false; enemybody = GetComponent <Rigidbody2D>(); right = true; sound = GameObject.FindGameObjectWithTag("Sound").GetComponent <SoundEffectMixer>(); }
void Start() { sound = GameObject.FindGameObjectWithTag("Sound").GetComponent <SoundEffectMixer>(); }