title: how do I extend a class from another script in c# Unity
body: <p>I'm trying to extend a base class on my player object.<br>
  player has damage script that looks like this</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class Damage : MonoBehaviour 
  {
  
      public int health = 100;
  
      public virtual void ReceiveDamage(int damageAmount)
      {
          Debug.Log ("Original");
      }
  }
  </code></pre>
  
  <p>And then the same player has another script like this :</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class playerDamage : Damage 
  {
      public override void ReceiveDamage(int damageAmount)
      {
          Debug.Log ("Extended");     
      }
  }
  </code></pre>
  
  <p>But when I call the script from a 3rd scrip on another object like this:</p>
  
  <pre><code>var damageScript = collision.gameObject.GetComponent&lt;Damage&gt;();
  if( damageScript)
  {
      damageScript.ReceiveDamage(damageAmount);
  }
  </code></pre>
  
  <p>the only response to the log is "Original"
  Shouldn't the child be called and "Extended" written to the log?</p>