Пример #1
0
 void ActiveColliderHit()
 {
     if (render.flipX)
     {
         if (isAttackingMelee)
         {
             collideras.ActiveCollider("left_StandupStick");
         }
         if (isAttackingMelee2)
         {
             collideras.ActiveCollider("left_StandupAxe");
         }
     }
     else
     {
         if (isAttackingMelee)
         {
             collideras.ActiveCollider("right_StandupStick");
         }
         if (isAttackingMelee2)
         {
             collideras.ActiveCollider("right_StandupAxe");
         }
     }
 }
Пример #2
0
 public void ActivateHitCollider()
 {
     if (!render.flipX)
     {
         colliderManager.ActiveCollider("StabLeft", true);
     }
 }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        dif = GameObject.Find("DifficultyChecker").GetComponent <DifficultyCheck>();
        switch (dif.difficulty)
        {
        case 0:
            Life = 20;
            break;

        case 1:
            Life  = 30;
            timer = 4;
            break;

        case 2:
            Life  = 50;
            timer = 2;
            break;
        }

        colliderManager = GetComponent <ColliderManager>();

        target        = GameObject.Find("Hero");
        CanGetDamaged = true;
        electrified   = false;
        Dying         = false;
        DamageFlinch  = false;
        Blocking      = false;
        Walking       = false;
        LookLeft      = true;
        Attack        = false;
        render        = GetComponent <SpriteRenderer>();
        colliderManager.ActiveCollider("StabLeft", false);
    }
Пример #4
0
 void ActiveColliderHit()
 {
     if (render.flipX)
     {
         if (isAttackingMelee)
         {
             collideras.ActiveCollider("left_DownStick");
         }
         if (isAttackingMelee2)
         {
             collideras.ActiveCollider("left_DownAxe");
         }
         if (isAttackingMelee3)
         {
             collideras.ActiveCollider("left_DownKick");
         }
         if (isAttakcingMelee4)
         {
             collideras.ActiveCollider("left_StandupKick");
         }
     }
     else
     {
         if (isAttackingMelee)
         {
             collideras.ActiveCollider("right_DownStick");
         }
         if (isAttackingMelee2)
         {
             collideras.ActiveCollider("right_DownAxe");
         }
         if (isAttackingMelee3)
         {
             collideras.ActiveCollider("right_DownKick");
         }
         if (isAttakcingMelee4)
         {
             collideras.ActiveCollider("right_StandupKick");
         }
     }
 }
Пример #5
0
 public void ActivateHitCollider()
 {
     colliderManager.ActiveCollider("FrozenWater", true);
     colliderManager.ActiveCollider("Water", false);
 }
Пример #6
0
 // Use this for initialization
 void Start()
 {
     Frozen          = false;
     colliderManager = GetComponent <ColliderManager>();
     colliderManager.ActiveCollider("FrozenWater", false);
 }