Example #1
0
 public virtual void Start()
 {
     attackScript = GetComponent <EnemyAttackScript>();
     anime        = GetComponent <Animator>();
     FindEyes();
     CreateMovementScript();
     enemysStats = GetComponent <EnemyStats>();
     loot        = new List <ItemSaveName>();
     loot.Add(new ItemSaveName("Rock", 1));
 }
 void Awake()
 {
     // Retrieve the weapon only once
     weapon = GetComponent <EnemyAttackScript>();
 }