Ejemplo n.º 1
0
 public void Init(float restore, float maxArmor, float speed, float isStun, float isSlownDown, float LimitAttackTimes, float EnemyHealth)
 {
     m_MonsterWalk = GetComponent <MonsterWalk>();
     this.restore  = restore;
     this.maxArmor = maxArmor;
     m_MonsterWalk.changeSpeed(speed);
     m_MonsterWalk.setIsSlownDown(isSlownDown);
     this.isStun           = isStun;
     this.LimitAttackTimes = LimitAttackTimes;
     maxHealth             = EnemyHealth;
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        m_Collider     = GetComponent <Collider>();
        m_MonsterWalk  = GetComponent <MonsterWalk>();
        m_HitParticles = m_HitParticlesObject.GetComponent <ParticleSystem>();
        //isSlowdown = new bool[(int)TowerLevel.MaxLevel];
        //for (int i = 0; i < (int)TowerLevel.MaxLevel; i++)
        //{
        //    isSlowdown[i] = false;
        //}
        startTime = Time.time;

        m_Image = slider.transform.FindChild("Fill Area/Fill").GetComponent <Image>();
        health  = maxHealth;
    }