Example #1
0
    void OnCollisionEnter2D(Collision2D c)
    {
        if (c.gameObject.CompareTag("Iten"))
        {
            trashCan.controllerTrashCan.Hurt();
            controllerEarth.Hurt();

            BehaviourAnimation.Float(gameObject, "Life", trashCan.life);
        }
    }
Example #2
0
    public void Point()
    {
        FacadeTrashCan.Score(classTrashCan);

        BehaviourAnimation.Float(earth, "Life", classTrashCan.life);
    }