void OnTriggerEnter(Collider collider)
 {
     if (collider.gameObject.tag == "QuarterNote" || collider.gameObject.tag == "WholeNote" || collider.gameObject.tag == "EighthNote")
     {
         FollowerMove follower = (FollowerMove)collider.gameObject.GetComponent("FollowerMove");
         noteType     = follower.note_type;
         modifier_sig = collider.gameObject.GetComponentInChildren(typeof(ModifierSignal)) as ModifierSignal;
         goalReached();
     }
 }
Example #2
0
    public override void changeModifierSignal(GameObject obj)
    {
        ModifierSignal ms = obj.GetComponentInChildren(typeof(ModifierSignal)) as ModifierSignal;

        ms.changeMaterial(GameConstants.Modifiers.Flat);
    }