title: Can a unity script simply be a public variable
body: <p>I was trying to add a script that attaches a global damage rating to the object however the script came up with a console error,    </p>
  
  <blockquote>
    <p>error CS0120: An object reference is required for the non-static 
        field, method, or property <code>AttackStat.atk</code></p>
  </blockquote>
  
  <p>So I am confused, is there a requirement for a unity script that I am not meeting or something, I am quite new to programming in unity </p>
  
  <p>Thanks for your time </p>
  
  <p>Attackstat.cs</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class AttackStat : MonoBehaviour
  {
      public float atk;
  
  }
  </code></pre>