Example #1
0
 private void Start()
 {
     player          = GameObject.FindGameObjectWithTag(Tags.player);
     controller      = player.GetComponent <Tps_ActionController>();
     playerInventory = player.GetComponent <Tps_PlayerInventory>();
     WeaponName      = "Tps_Weapon_fal";
 }
Example #2
0
    private void Start()
    {
        actionController = this.GetComponent <Tps_ActionController>();
        playerControl    = this.GetComponent <Tps_PlayerControl>();
        cam            = this.GetComponentInChildren <Tps_TpCamera>();
        playerHealth   = this.GetComponent <Tps_PlayerHealth>();
        networkManager = GameObject.FindGameObjectWithTag(Tags.networkManager).GetComponent <NetworkManager>();

        enemyCreate    = GameObject.FindGameObjectWithTag(Tags.enermy).GetComponent <Tps_EnemyCreate>();
        enemyAI        = GameObject.FindGameObjectWithTag(Tags.enermy).GetComponent <Tps_EnemyAI>();
        enemyAnimation = GameObject.FindGameObjectWithTag(Tags.enermy).GetComponent <Tps_EnemyAnimation>();
        enemyShoot     = GameObject.FindGameObjectWithTag(Tags.enermy).GetComponent <Tps_EnemyShoot>();
        enemySight     = GameObject.FindGameObjectWithTag(Tags.enermy).GetComponent <Tps_EnemySight>();

        WayPoint_01 = GameObject.FindGameObjectWithTag(Tags.wayPoint).GetComponent <Transform>();
    }
Example #3
0
 private void Start()
 {
     player     = GameObject.FindGameObjectWithTag(Tags.player);
     controller = player.GetComponent <Tps_ActionController>();
 }