Fighter.fighterStart C# (CSharp) Method

fighterStart() protected method

protected fighterStart ( ) : void
return void
	protected void fighterStart(){
		//important that this happens first, other initializations depend on it
		playerEnabled = true;
		if (Network.isClient) {
			playerEnabled = false;
		}	
		
		//inititalize skills before Player start
		activeSkill1 = null;
		activeSkill2 = null;
		activeSkill3 = null;
		activeSkill4 = null;
		activeSkill5 = null;
		activeSkill6 = null;
		
		initializePlayer();
		playerStart ();
		initializeLevel();
		initializePrimaryStats();
		initializeSecondaryStatsBase();
		initializeSecondaryStats();
		calculateSecondaryStats();
		initializeMoney();
		
		health = maxHealth;
		energy = maxEnergy;
		
		target = null;
		startPosition = transform.position;

		//networking:
		fighterNetworkScript = (FighterNetworkScript)GameObject.FindObjectOfType (typeof(FighterNetworkScript));
		//database.readPrimaryStats();
	}
	// Update is called once per frame