// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player"); spr = GetComponent <SpriteRenderer>(); caminar = this.GetComponent <Animator>(); curHealth = maxHealth; rugbier = GameObject.Find("Rugbier1").GetComponent <Rugbier2>(); Invoke("ActivateNow", 3); }
// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player"); spr = GetComponent <SpriteRenderer>(); curHealth = maxHealth; barravida = GameObject.Find("barravida"); caminar = this.GetComponent <Animator>(); rugbier = GameObject.Find("Rugbier1").GetComponent <Rugbier2>(); GetComponent <Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeAll; }