Exemple #1
0
    public void SetPlayer()
    {
        player    = _networkMgr.player;
        skillCtrl = player.GetComponent <SkillCtrl_net2> ();
        GameObject.Find("hp_front_parent").GetComponent <HpBar_net2> ().setPlayer();
        startTime = Time.time;
//		this.GetComponent<HpBar> ().setPlayer ();
    }
Exemple #2
0
    void Start()
    {
        basicClock      = Time.time;
        basicAttackCool = 0.1f;
        fireBool        = false;

        isDie       = false;
        maxHp       = 100;
        hp          = 100;
        respawnTime = 3.0f;
        _moveCtrl   = GetComponent <MoveCtrl_net2> ();
        _skillCtrl  = GetComponent <SkillCtrl_net2> ();
        _networkMgr = GameObject.Find("NetworkManager").GetComponent <NetworkMgr2>();
    }