void Awake() { if (instance == null) { instance = this; } }
// Use this for initialization void Start() { battleSoundManager = GameObject.Find("BattleSoundManager").GetComponent <BattleSoundManager>(); if (!nextWave) { gameTime = GameObject.Find("GameTime").GetComponent <GameTime>(); } }
// Use this for initialization void Start() { battleSoundManager = GameObject.Find("BattleSoundManager").GetComponent <BattleSoundManager>(); text = GetComponent <Text>(); text.color = new Color(1, 1, 1, alpha); NextWave(startWave); startWave.GetComponent <Wave>().fontWave = this; }
// Use this for initialization void Start() { battleSoundManager = GameObject.Find("BattleSoundManager").GetComponent <BattleSoundManager>(); battleSoundManager.StopSound(BattleSoundManager.Type.BossBGM); battleSoundManager.PlaySound(BattleSoundManager.Type.GameOver, true); image = GetComponent <Image>(); image.color = new Color(1, 1, 1, alpha); blur.isBlur(); }
// Use this for initialization void Start() { battleSoundManager = GameObject.Find("BattleSoundManager").GetComponent <BattleSoundManager>(); RnadomElement(); if (isLeft) { transform.localScale = new Vector3(-1.0f, 1.0f, 1.0f); } }
private void Awake() { if (Instance == null) { Instance = this; _source = GetComponent <AudioSource>(); } else { Destroy(gameObject); } }
// Use this for initialization void Start() { battleSoundManager = GameObject.Find("BattleSoundManager").GetComponent <BattleSoundManager>(); }
// Use this for initialization void Start() { battleSoundManager = GameObject.Find("BattleSoundManager").GetComponent <BattleSoundManager>(); rigid2D = GetComponent <Rigidbody2D>(); }