Exemple #1
0
 // Use this for initialization
 void Start()
 {
     attack = PlayerAttackScript.ATTACK.MELEE;
     PlayerMovementScript.isMelee = true;
     StartCoroutine("att");
     //-ChargeBarUI.SetActive (false);
     characterstats = gameObject.GetComponent <CharacterStatsScript> ();
     xboxScript     = GetComponent <XboxPlayerControlScript> ();
 }
Exemple #2
0
 private void Awake()
 {
     healthText       = FindObjectOfType <ID_HealthText>();
     DK_AmmoText      = FindObjectOfType <DK_AmmoTextScript>();
     playerInstrument = FindObjectOfType <PlayerInstrument>();
     playerDreamkiss  = FindObjectOfType <PlayerDreamkiss>();
     playerStats      = GetComponent <CharacterStatsScript>();
     player           = GetComponentInParent <Player>();
 }
 public void Awake()
 {
     CharacterStats = GetComponentInChildren <CharacterStatsScript>();
     source         = GetComponent <AudioSource>();
     if (CharacterStats != null)
     {
         Debug.Log("Character Stats is present!");
     }
 }
	// Use this for initialization
	void Start () {
		characterstats = GameObject.FindGameObjectWithTag ("Player").GetComponent<CharacterStatsScript> ();
	}
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     characterstats  = gameObject.GetComponent <CharacterStatsScript> ();
     playerAttack    = gameObject.GetComponent <PlayerAttackScript> ();
     Temp_DodgeSpeed = characterstats.DodgeSpeed;
 }
Exemple #6
0
 // Use this for initialization
 void Start()
 {
     player         = FindObjectOfType <PlayerMovementScript> ();
     characterstats = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterStatsScript> ();
 }
Exemple #7
0
 void Awake()
 {
     myTransform          = transform;
     target               = GameObject.FindGameObjectWithTag("Player");
     characterstatsscript = target.GetComponent <CharacterStatsScript> ();
 }