Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     switchdelay = true;
     shoottimer  = new float[3];
     nowbullet   = 0;
     cur         = GameObject.Find("ColorManager").GetComponent <colorLight>();
     manag       = GameObject.FindGameObjectWithTag("manag").GetComponent <GameManegiment>();
     nAudio      = FindObjectOfType <AudioManager>();
     shootch     = new bool[3];
     shootch[0]  = true;
     shootch[1]  = true;
     shootch[2]  = true;
     bulletid[0] = manag.bulletid[0];
     bulletid[1] = manag.bulletid[1];
     bulletid[2] = manag.bulletid[2];
     nAudio.SetVolumn(normal, 0.2f);
     nAudio.SetVolumn(laser, 0.2f);
     nAudio.SetVolumn(bigLaser, 0.2f);
     nAudio.SetVolumn(charger, 0.2f);
 }
 void Start()
 {
     cur       = GameObject.Find("ColorManager").GetComponent <colorLight>();
     bulletcol = cur.curColor;
     gameObject.GetComponent <SpriteRenderer>().color = new Color(colors[cur.curColor, 0], colors[cur.curColor, 1], colors[cur.curColor, 2]);
 }
 void Start()
 {
     cur = GameObject.Find("ColorManager").GetComponent <colorLight>();
 }