// 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> (); }
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> (); }
// Use this for initialization void Start() { characterstats = gameObject.GetComponent <CharacterStatsScript> (); playerAttack = gameObject.GetComponent <PlayerAttackScript> (); Temp_DodgeSpeed = characterstats.DodgeSpeed; }
// Use this for initialization void Start() { player = FindObjectOfType <PlayerMovementScript> (); characterstats = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterStatsScript> (); }
void Awake() { myTransform = transform; target = GameObject.FindGameObjectWithTag("Player"); characterstatsscript = target.GetComponent <CharacterStatsScript> (); }