//int damage;
 //float delayFromEnemy;
 public void Init(int damageAmount, float delay, float lifetimeFromEnemy, EnemyActionsSecond caller)
 {
     startTime = Time.time;
     lifeTime = lifetimeFromEnemy;
     eas = caller;
     //damage = damageAmount;
     //delayFromEnemy = delay;
 }
    void Start()
    {
        layerMask = (1 << 9);
        layerMask |= Physics.IgnoreRaycastLayer;
        layerMask = ~layerMask;

        thisScript = GetComponent<EnemyActionsSecond>();
        move = GetComponent<EnemyMovement>();
        animator = gameObject.GetComponentInChildren<Animator>();

        shotLifetime = 4.0f;
        shotPrefab = (GameObject)Resources.Load("EnemyShot");

        if (actionDamage == 0) {
            actionDamage = 5;
        }

        esc = GetComponent<EnemySoundController>();
    }