Example #1
0
 public virtual void Awake()
 {
     controller     = GetComponent <SummonerController>();
     spriteRenderer = GetComponent <SpriteRenderer>();
     animator       = GetComponent <Animator>();
     healthbar      = GetComponentInChildren <Healthbar>();
 }
 // Use this for initialization
 void Start()
 {
     summonTime  = 0f;
     controller  = GetComponent <SummonerController> ();
     isAttacking = false;
     player      = GameObject.FindGameObjectWithTag("Player");
     anim        = GetComponent <Animator> ();
     rigid       = GetComponent <Rigidbody> ();
     nav         = GetComponent <NavMeshAgent> ();
     stats       = GetComponent <MonsterStats> ();
 }