public override void InitSkill() { casterCharacterTeam = (eTeamType)OWNER.GetComponent <BaseObject>().GetData(ConstValue.ActorData_Team); casterActor = (Actor)OWNER.GetComponent <BaseObject>().GetData(ConstValue.ActorData_GetThisActor); casterAIScript = casterActor.GetComponentInChildren <GiantEnemy>(); TEMP_OFF = false; }
// Use this for initialization void Start() { agent = GetComponent <NavMeshAgent>(); targetArray = Singleton_Service.GetSingleton <NeutralMovement>(); bigEnemy = Singleton_Service.GetSingleton <GiantEnemy>(); gunLight = Singleton_Service.GetSingleton <Gun>(); targetPos = targetArray.emptyGameObjectList[Random.Range(0, targetArray.emptyGameObjectList.Count)].transform.position; agent.SetDestination(targetPos); check = 0; }
// Use this for initialization void Start() { agent = GetComponent <NavMeshAgent>(); playerRig = Singleton_Service.GetSingleton <Player>(); bigEnemy = Singleton_Service.GetSingleton <GiantEnemy>(); targetArray = Singleton_Service.GetSingleton <NeutralMovement>(); gunLight = Singleton_Service.GetSingleton <Gun>(); agent.SetDestination(playerRig.transform.position); enemyHP = 3; }