Пример #1
0
    // ----------------------------------------------------------------
    //  Events
    // ----------------------------------------------------------------
    private void OnTriggerEnter2D(Collider2D col)
    {
        // If there's any sort of character here, inform it!
        PlatformCharacter character = Character(col);

        if (character != null)
        {
            character.OnEnterLift(this);
        }
        // Now route to our enter-or-stay function. ;)
        OnTriggerEnterOrStay(col);
    }