protected override void Start() { root = new Sequence(); seqDeath = new Sequence(); inAttackRange = new InAttackRange(this); isDead = new IsDead(this); death = new Death(this); base.Start(); Init(); StartCoroutine("BehaviorProcess"); //inst_Character = CharacterManager.getInstance(); //target = inst_Character.GetComponent<Transform>(); raidMonster = true; skillSet[0] = 1; skillSet[1] = 2; skillSet[2] = 3; skillSet[3] = 4; skillSet[4] = 5; currentHP = maxHP; currentSkill = 0; }
private static bool Prefix(InAttackRange __instance, ref TaskStatus __result) { if (LoaderConfig.Instance.MobsCantHurtYou) { __result = TaskStatus.Failure; return(false); } return(true); }
override protected void Start() { root = new Sequence(); seqDeath = new Sequence(); seqChase = new Sequence(); seqAttack = new Sequence(); selMove = new Selector(); selChase = new Selector(); patrol = new Patrol(this); isDead = new IsDead(this); death = new Death(this); inSight = new InSight(this); chase = new Chase(this); isDamaged = new IsDamaged(this); inAttackRange = new InAttackRange(this); attack = new Attack(this); base.Start(); Init(); StartCoroutine("BehaviorProcess"); }