Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     owner               = GameObject.Find("Player").GetComponent <Cast_Manager> ();
     rb                  = GetComponent <Rigidbody> ();
     cast_bar_obj        = GameObject.Find("CastBar");
     bar_bg_obj          = GameObject.Find("CastBar_BG");
     cast_bar            = GameObject.Find("CastBar").GetComponent <Image>();
     cast_bar_text       = GameObject.Find("Spell_Text").GetComponent <Text>();
     cast_bar_text.text  = "";
     cast_bar.fillAmount = 0;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     this_rb = this.gameObject.GetComponent <Rigidbody>();
     caster  = this.gameObject.GetComponent <Cast_Manager> ();
 }