Example #1
0
    void Start()
    {
        cLine = GetComponent <LineRenderer>();
        if (!cLine)
        {
            Debug.Log("No line renderer");
        }

        cHpShlds = GetComponent <A_HealthShields>();
        cMisc    = GetComponent <EN_Misc>();
    }
Example #2
0
    void Start()
    {
        cHpShlds = GetComponent <A_HealthShields>();

        rPC = FindObjectOfType <PC_Cont>();
        if (rPC == null)
        {
            Debug.Log("No player character found");
        }

        gUI = GetComponentInChildren <UI_EN>();
        if (gUI == null)
        {
            Debug.Log("No enemy UI found");
        }
    }
Example #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;
    }
Example #4
0
 void Start()
 {
     cHpShlds = GetComponent <A_HealthShields>();
     cMisc    = GetComponent <EN_Misc>();
 }
 void Start()
 {
     cHpShlds    = GetComponent <A_HealthShields>();
     cMisc       = GetComponent <EN_Misc>();
     mClipD.mAmt = mClipD._size;
 }