Advertisement
Pro_Unit

BoolVariableCondition

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