예제 #1
0
 // Use this for initialization
 void Start()
 {
     info             = GetComponent <Info>();
     parentPlayer     = GameObject.FindGameObjectWithTag(owner.ToString());
     lastFirePosition = new Vector3(0, 0, -100);
     SoundEngineWrapper.QueueSound("firerun_alive", 0, false, 22);
 }
예제 #2
0
        public override void initiate()
        {
            copy      = Instantiate(zone, new Vector3(0, 0.1f, 0), new Quaternion(0, 0, 0, 0)) as GameObject;
            dMaterial = copy.GetComponent <Renderer>().material;

            for (int i = 0; i < 4; i++)
            {
                players[i] = GameObject.FindGameObjectWithTag((i + 1).ToString());
            }

            if (!SoundEngineWrapper.IsPlaying(13))
            {
                SoundEngineWrapper.QueueSound("event_start", 0, false, 13);
            }
        }
예제 #3
0
 public override void cleanup()
 {
     Destroy(copy);
     SoundEngineWrapper.QueueSound("event_win", 0, false, 13);
 }