Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        LookLeft = true;
        Dif      = GameObject.Find("DifficultyChecker").GetComponent <DifficultyCheck>();
        switch (Dif.difficulty)
        {
        case 0:
            Life = 120;
            break;

        case 1:
            Life = 150;
            break;

        case 2:
            Life = 180;
            break;
        }
        Scene  currentScene = SceneManager.GetActiveScene();
        string sceneName    = currentScene.name;

        if (sceneName == "Level3")
        {
            SoundManager.instance.Stop(SoundID.LEVEL3);
            SoundManager.instance.Play(SoundID.FINALBOSS, true, 0.3f);
        }

        Idle = true;
    }
Ejemplo n.º 2
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);
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        dif = GameObject.Find("DifficultyChecker").GetComponent <DifficultyCheck>();
        switch (dif.difficulty)
        {
        case 0:
            Life = 16;
            break;

        case 1:
            Life     = 24;
            maxTimer = 3;
            break;

        case 2:
            Life     = 32;
            maxTimer = 1;
            break;
        }
        timer         = maxTimer;
        CanGetDamaged = true;
        target        = GameObject.Find("Hero");
        Flying        = true;
        Shield        = this.gameObject.transform.GetChild(0).gameObject;
    }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        dif = GameObject.Find("DifficultyChecker").GetComponent <DifficultyCheck>();
        switch (dif.difficulty)
        {
        case 0:
            Life = 3;
            break;

        case 1:
            Life = 5;
            break;

        case 2:
            Life = 7;
            break;
        }

        if (dif.difficulty == 1)
        {
            timer = 5;
        }
        else if (dif.difficulty == 2)
        {
            timer = 3;
        }

        Dying        = false;
        Walking      = false;
        Blocking     = false;
        DamageFlinch = false;
        IsGrounded   = false;
        Scene  currentScene = SceneManager.GetActiveScene();
        string sceneName    = currentScene.name;

        if (sceneName == "Level")
        {
            SoundManager.instance.Stop(SoundID.LEVEL1);
            SoundManager.instance.Play(SoundID.BOSS, true, 0.3f);
        }
    }
Ejemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        Dif = GameObject.Find("DifficultyChecker").GetComponent <DifficultyCheck>();

        switch (Dif.difficulty)
        {
        case 0:
            Life = 80;
            break;

        case 1:
            Life = 100;
            break;

        case 2:
            Life = 120;
            break;
        }

        LookLeft      = true;
        Idle          = true;
        Dashing       = false;
        Dying         = false;
        Blocking      = false;
        DamageFlinch  = false;
        Jumping       = false;
        CanGetDamaged = true;
        Submerged     = false;

        Scene  currentScene = SceneManager.GetActiveScene();
        string sceneName    = currentScene.name;

        if (sceneName == "Level2")
        {
            SoundManager.instance.Stop(SoundID.LEVEL2);
            SoundManager.instance.Play(SoundID.BOSS, true, 0.3f);
        }
    }