示例#1
0
    // Use this for initialization
    void Start()
    {
        AudioManager.instance.Stop("Theme");
        AudioManager.instance.Play("Dungeon Music");

        CC_Melee = GetComponent <PC_Melee>();
        CC_Move  = GetComponent <PC_Move>();
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        foreach (UIElement element in Health)
        {
            element.SetStates();
        }

        foreach (UIElement element in Attacks)
        {
            element.SetStates();
        }

        foreach (UIElement element in Dashes)
        {
            element.SetStates();
        }

        CC_Melee  = GetComponent <PC_Melee>();
        CC_Move   = GetComponent <PC_Move>();
        CC_Health = GetComponent <PC_Health>();
        CC_Pouch  = GetComponent <PC_Pouch>();
    }
示例#3
0
    void Start()
    {
        cRigid   = GetComponent <Rigidbody2D>();
        cGun     = GetComponent <PC_Gun>();
        cPRifle  = GetComponent <PC_PRifle>();
        cGren    = GetComponent <PC_Grenades>();
        cHpShlds = GetComponent <A_HealthShields>();
        cMelee   = GetComponent <PC_Melee>();

        rUI = FindObjectOfType <UI_PC>();
        if (rUI == null)
        {
            Debug.Log("No PC User Interface Found");
        }

        cHpShlds.mHealth.mAmt       = cHpShlds.mHealth._max;
        cHpShlds.mShields.mStrength = 75f;
        cHpShlds.mShields.mState    = Shields.STATE.BROKEN;

        cGun.mState             = PC_Gun.STATE.CAN_FIRE;
        cGun.mGunD.mIsActive    = true;
        cPRifle.mGunD.mIsActive = false;
    }