public override void OnStart() { initData (); script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>(); script_sound = GameObject.FindWithTag("sound").GetComponent<SoundEf_slash>(); }
void Awake() { m_transform = transform; m_animation = GetComponent<Animation>(); m_audio = GetComponent<AudioSource>(); m_rigidbody = GetComponent<Rigidbody>(); script_monEf = Monster_efs.instance; enemy = GameObject.FindWithTag("Respawn").GetComponent<DB_Monster>().enemy[1]; script_sound = GameObject.FindWithTag("sound").GetComponent<SoundEf_slash>(); script_cam = Camera.main.GetComponent<CamMove>(); // gameObject.AddComponent<Skill> (); m_skillScript = gameObject.GetComponent<Skill> (); skillData = new SkillState("enemy_normal_skill"); skillData.Init (this); skillList = new SkillManager (); m_isDead = false; }
void Awake() { mytransform = transform; myanimation = GetComponent<Animation>(); myaudio = GetComponent<AudioSource>(); script_monEf = GameObject.FindWithTag("efs_mon").GetComponent<Monster_efs>(); enemy = GameObject.FindWithTag("Respawn").GetComponent<DB_Monster>().enemy[enemykind]; //Debug.Log(enemykind); cha1 = GameObject.FindWithTag("Player").transform; script_cha = cha1.GetComponent<MyPlayer>(); script_sound = GameObject.FindWithTag("sound").GetComponent<SoundEf_slash>(); script_cam = Camera.main.GetComponent<CamMove>(); }