Пример #1
0
    void Start()
    {
        cRigid   = GetComponent <Rigidbody2D>();
        cGun     = GetComponent <PC_Gun>();
        cGrnd    = GetComponent <PC_Grnd>();
        cShields = GetComponent <PC_Shields>();

        _health = _maxHealth;
    }
Пример #2
0
    void Start()
    {
        cRigid   = GetComponent <Rigidbody>();
        cCam     = GetComponentInChildren <PC_Cam>();
        cGun     = GetComponent <PC_Gun>();
        cGrnd    = GetComponent <PC_Grnd>();
        cShields = GetComponent <PC_Shields>();

        _health = _maxHealth;
    }
Пример #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;
    }