// Use this for initialization void Start() { this.freeze = 0.0f; PJAudio = GameObject.FindObjectOfType(typeof(PJMusicManager)) as PJMusicManager; this.paused = false; anim = GetComponent <Animator> (); anim.SetBool("Walk", false); anim.SetBool("attackMelee", false); controller = this.GetComponent <CharacterController>(); PJAudio = GameObject.FindObjectOfType(typeof(PJMusicManager)) as PJMusicManager; targetPosition = transform.position; lastPosition = transform.position; hit = new RaycastHit(); nextMagicAttack = 0; Magia = GameObject.FindObjectOfType(typeof(EmitParticles)) as EmitParticles; ParticulesSang = GameObject.FindObjectOfType(typeof(BitParticles)) as BitParticles; this.modeEasy(); }
void Awake() { emitter = GetComponent<EmitParticles>(); }
void Awake() { emitter = GetComponent <EmitParticles>(); }
// Use this for initialization void Start () { this.freeze = 0.0f; PJAudio = GameObject.FindObjectOfType(typeof(PJMusicManager)) as PJMusicManager; this.paused = false; anim = GetComponent<Animator> (); anim.SetBool ("Walk", false); anim.SetBool ("attackMelee",false); controller = this.GetComponent<CharacterController>(); PJAudio = GameObject.FindObjectOfType(typeof(PJMusicManager)) as PJMusicManager; targetPosition = transform.position; lastPosition = transform.position; hit = new RaycastHit(); nextMagicAttack = 0; Magia = GameObject.FindObjectOfType(typeof(EmitParticles)) as EmitParticles; ParticulesSang = GameObject.FindObjectOfType(typeof(BitParticles)) as BitParticles; this.modeEasy (); }