// ------------------------------------------------------------------------------- // OnTriggerEnter // ------------------------------------------------------------------------------- protected virtual void OnTriggerEnter(Collider col) { if (col.GetComponent <PartyPlayer>() != null && !Finder.battle.InBattle && (!tile.TriggerOnce || !interacted) && (DungeonHelper.IsOppositeDirection(Finder.navi.facingDirection, tile.facingDirection, tile.interactFromBothSides)) ) { StartEventNode(); } }
// ------------------------------------------------------------------------------- // OnTriggerStay // ------------------------------------------------------------------------------- protected virtual void OnTriggerStay(Collider col) { if (col.GetComponent <PartyPlayer>() != null && !Finder.battle.InBattle && (!tile.TriggerOnce || !interacted) && Finder.navi.changedDirection && !playerSteppedOnTile && DungeonHelper.IsOppositeDirection(Finder.navi.facingDirection, tile.facingDirection) ) { StartEventNode(); } }