Advertisement
Pro_Unit

IntLessCondition

Apr 5th, 2019
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using UnityEngine;
  2. namespace GameCore
  3. {
  4.     [CreateAssetMenu (fileName = "IntLessCondition", menuName = "GameCore/Condition/Int/Less")]
  5.     public class IntLessCondition : ACondition
  6.     {
  7.         [SerializeField] IntVariable first;
  8.         [Header ("<")]
  9.         [SerializeField] IntVariable second;
  10.         public override bool Value
  11.         {
  12.             get
  13.             {
  14.                 return first.Value < second.Value;
  15.             }
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement