예제 #1
0
    // Use this for initialization
    void Start()
    {
        //When starting object pass in reference to containing object.
        fmupbman = new FuckMeUpBatman(this);
        //Find the beats
        beat = FindObjectOfType <Beat>();

        //Add the code you want done to the beats!!
        beat.AddListener(fmupbman);
    }