title: Dynamic if Condition from any class In Unity
body: <p>I want to create a dynamic conditional statement.</p>
  
  <pre><code>class Condition
  {
      targetObject;   //Class or Struct or anythings..
      targetMemberVariable;  //the Member in targetObject
  
      conditionFilter;
      //It depends on the type of targetMemberVariable.
      //targetMemberVariable is Float type,
      //then conditionFilter automatically becomes a Float type. 
      //No need to change it in "Inspector"
  
      comparisonValue;
      //This is based on the type of conditionFilter.
      //If it is a float type, the "Inspector" takes a float as its value.
  
      Public bool CheckCondition(object targetObject)
      {
          //It checks with the above information and returns a true value.
          return true or false;
      }
  }
  </code></pre>
  
  <p>I want to get the Unity Editor or C # library keywords.</p>
  
  <p>The intention is to create something like the above.</p>
  
  <ol>
  <li>Interactive elements in the game are likely to change.</li>
  <li>In-game elements can be expanded or added.</li>
  <li>I do not want to modify conditional statements for each change or extension.</li>
  </ol>
  
  <p>example</p>
  
  <p><a href="https://i.stack.imgur.com/HCziE.jpg" rel="nofollow noreferrer">ex1</a>
  <a href="https://i.stack.imgur.com/2b2Sd.jpg" rel="nofollow noreferrer">ex2</a>
  I remember seeing the library used in dynamic compilation in C # or after adding classes during execution.</p>
  
  <p>Of course I know that dynamic is not universal.
  I want to do something like the validation of StarCraft Galaxy Editor.</p>
  
  <p>Here is a game example</p>
  
  <pre><code>[Bleeding shot]
  Give 10 damage to enemies.
  If the enemy's Health is below 20, it adds 10 damage.
  
  unit,health,amount,&lt;=(below)
  true-&gt; adds 10 damage.
  false -&gt; none.
  
  
  [Hooking]
  If the enemy is enemy, it gives 5 damage and pulls to the front.
  If the target is ally, pull to the front and reduce cooldown to 5 seconds.
  
  unit,Tag,Enemy(enum),==
  true-&gt; 5 damage and pulls to the front.
  false-&gt; pull to the front and reduce cooldown to 5 seconds.
  
  [Healing the Moon]
  Heal the target by 10.
  If the current time is night, heal 10 more.
  
  GameTimer,DayNight(Enum),Night,==
  true-&gt;heal 10 more.
  </code></pre>