// ------------------------------------------------------------------------------
    // Function Name: Start
    // Return types: 
    // Argument types: 
    // Author: 
    // Date: 10/14/17
    // ------------------------------------------------------------------------------
    // Purpose: 
    // ------------------------------------------------------------------------------
    public void Start()
    {
        hp = shooterRB.GetComponent<WLD_HealthDmg>();

        //audioSource = GetComponent<AudioSource>();

    }
Example #2
0
    void Start()
    {
        wld_HealthDmg         = this.GetComponent <WLD_HealthDmg>();
        plr_CharacterMovement = GetComponent <PLR_CharacterMovement>();
        plr_Points            = GetComponent <PLR_Points>();
        rb = plr_CharacterMovement.RB;
        startingMoveSpeed = plr_CharacterMovement.MovingSpeed;

        currentTime = 0;

        if (WLD_GameController.activeLevel == WLD_GameController.levels[Scenes.Hub])
        {
            msg = GameObject.Find("LevelSpecificUI/EndPieceLoreSystem").GetComponent <UI_EndPieceMsgSystem>();
        }
        else
        {
            msg = GameObject.FindObjectOfType <UI_EndPieceMsgSystem>();
        }

        hashIDs = FindObjectOfType <UNA_HashIDs>();

        anim = transform.GetChild(1).GetChild(0).GetComponent <Animator>();

        Debug.Log(anim.gameObject.name);
    }//End Start
Example #3
0
    void Start()
    {
        isStopChasing = true;
        isInRange = false;
        isBackToPatrol = false;

        rb = GetComponent<Rigidbody>();
        wld_healthDmg = GetComponent<WLD_HealthDmg>();
    }
    // ------------------------------------------------------------------------------
    // FUNCTIONS
    // ------------------------------------------------------------------------------

    // ------------------------------------------------------------------------------
    // Function Name: Start
    // Return types: 
    // Argument types: 
    // Author: 
    // Date: 10/7/17
    // ------------------------------------------------------------------------------
    // Purpose: Initializes
    // ------------------------------------------------------------------------------
    void Start()
    {
        player = GameObject.FindGameObjectWithTag(UNA_Tags.player).transform;
        //target = ENM_WayPoints.waypoints[0];
        //damage = GameObject.FindGameObjectWithTag(UNA_Tags.player).GetComponent<WLD_HealthDmg>();
        startY = transform.position.y;
        hp = this.GetComponent<WLD_HealthDmg>();
        playerHealth = WLD_GameController.player;
        //playerHP = playerHealth.GetComponent<WLD_HealthDmg>().Health;
    }
Example #5
0
    void Awake()
    {
        rb = GetComponent <Rigidbody>();
        //lL = FindObjectOfType<WLD_LevelLoader>(); //Ref to levelLoader script - will need to update to ref specific Teleporter's Segement selection later
        //Added to test InvertedGravity
        player_grv_individualGravity = this.GetComponent <GRV_IndividualGravity>();
        //Finish Add
        //plr_Jump = GetComponent<PLR_Jump>();
        plr_Shoot    = FindObjectOfType <PLR_Shoot>();
        healthScript = this.GetComponent <WLD_HealthDmg>();

        rb.isKinematic = false;
        rb.useGravity  = false;

        isFrozen = false;

        hashIDs = FindObjectOfType <UNA_HashIDs>();
        anim    = playerGFX.GetComponentInChildren <Animator>();
    }
    // ------------------------------------------------------------------------------
    // FUNCTIONS
    // ------------------------------------------------------------------------------

    // ------------------------------------------------------------------------------
    // Function Name: Start
    // Return types: 
    // Argument types: 
    // Author: 
    // Date: 10/7/17
    // ------------------------------------------------------------------------------
    // Purpose: 
    // ------------------------------------------------------------------------------
    private void Start()
    {
        damage = WLD_GameController.player.GetComponent<WLD_HealthDmg>();

        meshRenderer = explodyGFX.GetComponent<Renderer>();
        enemyLight = explodyGFX.GetComponentInChildren<Light>();
        anim = explodyParent.GetComponentInChildren<Animator>();
        
        tempShader = meshRenderer.material.shader;

        enemyLight.enabled = false;

        meshRenderer.material.SetColor("_TintColor", start);
        
        hp = GetComponentInParent<WLD_HealthDmg>();

        player = WLD_GameController.player;

        audioSource = GetComponent<AudioSource>();

    }
Example #7
0
 // ------------------------------------------------------------------------------
 // FUNCTIONS
 // ------------------------------------------------------------------------------
 void Start()
 {
     healthdmg = GetComponent<WLD_HealthDmg>();
 }
    // ------------------------------------------------------------------------------
    // FUNCTIONS
    // ------------------------------------------------------------------------------

    /* ------------------------------------------------------------------------------
     * Function Name: Start
     * Return types: N/A
     * Argument types: N/A
     * Author:
     * Date Created:
     * Last Updated:
     * ------------------------------------------------------------------------------
     * Purpose: Used to initialize variables or perform startup processes
     * ------------------------------------------------------------------------------
     */
    void Start()
    {
        wld_HealthDmg    = WLD_GameController.player.GetComponent <WLD_HealthDmg>();
        allDamageVolumes = FindObjectsOfType <WLD_DamageVolume>();
    }    //End Start