Beispiel #1
0
    public bool m_startedWaves;                                        // check for the start of the wave

    //Kurtis Watson
    private void Start()
    {
        m_wispPoint        = GameObject.FindGameObjectsWithTag("WispPoint"); //Find all wisp points.
        r_userInterface    = FindObjectOfType <User_Interface>();
        m_prototypeClasses = FindObjectOfType <Prototype_Classes>();
        r_notesSystem      = FindObjectOfType <Notes_System>();
        m_enemyCount       = GameObject.Find("EnemyCount").GetComponent <Text>();
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        damageCoolDown          = 0.2f;
        m_currentDamageCoolDown = damageCoolDown;

        m_playerController = FindObjectOfType <Player_Controller>();
        m_prototypeClasses = FindObjectOfType <Prototype_Classes>();

        m_lr = GetComponent <LineRenderer>(); //Access line renderer component.
    }
Beispiel #3
0
    // Start is called before the first frame update
    void Start()
    {
        // get the components that are defined at the top
        m_rb               = gameObject.GetComponent <Rigidbody>(); // get rigidbody
        m_navAgent         = gameObject.GetComponent <NavMeshAgent>();
        r_anim             = gameObject.GetComponent <Animator>();
        r_player           = GameObject.FindObjectOfType <Player_Controller>();
        r_waveSystem       = FindObjectOfType <Wave_System>();
        m_prototypeClasses = FindObjectOfType <Prototype_Classes>();

        m_defaultRunSpeed  = m_runSpeed;    // set the default run speed
        m_hurtBox.m_damage = m_enemyDamage; // set the hurtbox damage to represent the enemy damage
    }
Beispiel #4
0
    public List <Material> materials = new List <Material>(); //List of materials used.

    private void Start()
    {
        m_prototypeClasses = FindObjectOfType <Prototype_Classes>();
    }
Beispiel #5
0
    // Start is called before the first frame update

    private void Start()
    {
        r_waveSystem       = FindObjectOfType <Wave_System>();
        m_playerController = FindObjectOfType <Player_Controller>();
        m_prototypeClasses = FindObjectOfType <Prototype_Classes>();
    }