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>(); }
// Use this for initialization void Start() { _moveCtrl = GetComponent <MoveCtrl_net2> (); _playerCtrl = GetComponent <PlayerCtrl_net2> (); normalSpeed = 7.0f; dashSpeed = 20.0f; shootSpeed = 3.0f; tr = GetComponent <Transform> (); photonView = GetComponent <PhotonView>(); _networkMgr = GameObject.Find("NetworkManager").GetComponent <NetworkMgr2>(); if (!GetComponent <PhotonView>().isMine) { this.enabled = false; } trailrender = GetComponent <TrailRenderer> (); trailrender.enabled = false; }