void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     battleSoundManager = GameObject.Find("BattleSoundManager").GetComponent <BattleSoundManager>();
     if (!nextWave)
     {
         gameTime = GameObject.Find("GameTime").GetComponent <GameTime>();
     }
 }
Example #3
0
 // 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;
 }
Example #4
0
 // 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();
 }
Example #5
0
    // 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>();
 }
Example #8
0
 // Use this for initialization
 void Start()
 {
     battleSoundManager = GameObject.Find("BattleSoundManager").GetComponent <BattleSoundManager>();
     rigid2D            = GetComponent <Rigidbody2D>();
 }