// Use this for initialization void Start() { playerName = PlayerPrefs.GetString("playerName"); _maxHealth = 100.0f; _currentHealth = _maxHealth; _takingDamage = false; //save the quaternion representing our initial orientation from the transform initialOrientation = transform.rotation; //set the cummulativeRotation to zero. cummulativeRotationYAxis = 0.0f; cummulativeRotationXAxis = 0.0f; _myID = this.networkView.viewID; _myView = NetworkView.Find(_myID); //_bullets = new ArrayList(); _bulletFiringTimer = _missleFiringTimer = 1000; /*_bulletCounter =*/ _missleCounter = 0; _bulletFiringTime = 10; _missleFiringTime = 300; //whirringBladesObject1 = this.transform.FindChild("AudioBlades1").gameObject; //whirringBladesObject2 = this.transform.FindChild("AudioBlades2").gameObject; shootingSoundObject = this.transform.FindChild("AudioShootGunSound").gameObject; bManager = this.GetComponent<BulletManager>(); bManager.Owner = _myView.observed.gameObject; bManager.initialize(1, 20.0f, 20); }