예제 #1
0
    void Awake()
    {
        audioSource = gameObject.GetComponent <AudioSource>();
        inputAction = new DefaultControl();

        Drum.rightInner += HitRI;
        Drum.rightOuter += HitRO;
        Drum.leftInner  += HitLI;
        Drum.leftOuter  += HitLO;

        inputAction.Gameplay.rightInner.performed += ctx => HitRI();
        inputAction.Gameplay.rightOuter.performed += ctx => HitRO();
        inputAction.Gameplay.leftInner.performed  += ctx => HitLI();
        inputAction.Gameplay.leftOuter.performed  += ctx => HitLO();
        //inputAction.Gameplay.DoubleInner.performed += ctx => HitQuality(note.GetComponent<Note>().collideTime);

        lI = false;
        lO = false;
        rI = false;
        rO = false;

        projectile = new Utility.Projectile(target.transform, 0.75f);
        Utility.ResetScore();
        enteredQueue = new Queue <GameObject>();
    }