Exemple #1
0
    private void OnTriggerExit2D(Collider2D col)
    {
        // If there's any sort of character here, inform it!
        PlatformCharacter character = Character(col);

        if (character != null)
        {
            character.OnExitLift(this);
        }

//		PlatformCharacter character = CharacterAffectedByMe(col);
        if (character != null)
        {
            isCharacterInMe = false;
            ApplyBodyAlpha();
        }
//		if (IsCharacter(col)) {
//			isCharacterInMe = false;
//			ApplyBodyAlpha();
//		}
    }