// Update is called once per frame
    void Update()
    {
        if (firstTime)
        {
            firstTime = false;

            DJ_BeatManager.ActivateLayerOne();
            DJ_BeatManager.ActivateLayerTwo();
            DJ_BeatManager.ActivateLayerThree();
            DJ_BeatManager.ActivateLayerFour();

            this.gameObject.SetActive(false);
        }
    }
示例#2
0
 public void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.CompareTag(DJ_Tag.DJ_Player.ToString()))
     {
         if (layer1)
         {
             DJ_BeatManager.ActivateLayerOne();
         }
         if (layer2)
         {
             DJ_BeatManager.ActivateLayerTwo();
         }
         if (layer3)
         {
             DJ_BeatManager.ActivateLayerThree();
         }
         if (layer4)
         {
             DJ_BeatManager.ActivateLayerFour();
         }
         gameObject.SetActive(false);
     }
 }