// Use this for initialization
 void Start()
 {
     if (cooldown == null)
     {
         Debug.LogError("Missing Cooldown Button assignment");
     }
     sauim = GetComponent <SoftMaskScript>();
 }
        void SetSAM(Transform t)
        {
            SoftMaskScript thisSam = t.gameObject.GetComponent <SoftMaskScript>();

            if (thisSam == null)
            {
                thisSam = t.gameObject.AddComponent <SoftMaskScript>();
            }
            thisSam.MaskArea                = MaskArea;
            thisSam.AlphaMask               = AlphaMask;
            thisSam.CutOff                  = CutOff;
            thisSam.HardBlend               = HardBlend;
            thisSam.FlipAlphaMask           = FlipAlphaMask;
            thisSam.maskScalingRect         = maskScalingRect;
            thisSam.DontClipMaskScalingRect = DontClipMaskScalingRect;
            thisSam.CascadeToALLChildren    = CascadeToALLChildren;
        }
 // Use this for initialization
 void Start()
 {
     SoftMaskToActivate         = this.gameObject.GetComponent <SoftMaskScript>();
     SoftMaskToActivate.enabled = true;
 }