Exemplo n.º 1
0
    //[Space]
    #endregion

    //================================

    #region Methods:

    /*
     * private void methodName()
     * {
     *  //Do Something()
     * }
     */

    //[Space]
    #endregion

    //================================

    #region Collision Check:

    /*
     * protected void OnCollisionEnter2D(Collision2D collision)
     * {
     *  Do Something();
     * }
     */
    private void OnTriggerEnter2D(Collider2D trig)
    {
        //Debug.Log("Collision Detected");
        //ballGM.angelBarrier();
        //destructNow.destroyInstant();
        bm.decoy();
        destructNow.destroyInstant();
    }
Exemplo n.º 2
0
    //[Space]
    #endregion

    //================================

    #region Methods:

    /*
     * private void methodName()
     * {
     *  //Do Something()
     * }
     */

    //[Space]
    #endregion

    //================================

    #region Collision Check:

    /*
     * protected void OnCollisionEnter2D(Collision2D collision)
     * {
     *  Do Something();
     * }
     */
    private void OnTriggerEnter2D(Collider2D trig)
    {
        //Debug.Log("Collision Detected");
        ballGM.boost();
        destructNow.destroyInstant();
    }