void Start() { dataSended = false; nt = FindObjectOfType <networkSocket>(); _consecutiveKills = 0; em = _particleSystem.emission; _playerPath.SetColor(_playerColor); _timingDeath = 0f; StopRumble(); next_move = Time.time + move_freq; }
// Use this for initialization void Start() { player = GetComponent <Rigidbody>(); GameObject thePlayer = GameObject.Find("player"); networkSocket networkScript = thePlayer.GetComponent <networkSocket>(); }