protected override bool Satisfied(Pawn pawn)
        {
            MentalState mentalState = pawn.MentalState;

            if (mentalState != null)
            {
                return(stateClass.IsAssignableFrom(mentalState.GetType()));
            }
            return(false);
        }
コード例 #2
0
        protected override bool Satisfied(Pawn pawn)
        {
            MentalState mentalState = pawn.MentalState;

            return(mentalState != null && this.stateClass.IsAssignableFrom(mentalState.GetType()));
        }