public virtual void OnEndAction() { //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Unknown result type (might be due to invalid IL or missing references) Character.ACTION_ID actionID = character.actionID; if (actionID == Character.ACTION_ID.MOVE && actUpdateSendFlag) { if (base.enableSend && base.owner.IsOriginal()) { Coop_Model_CharacterMoveVelocityEnd coop_Model_CharacterMoveVelocityEnd = new Coop_Model_CharacterMoveVelocityEnd(); coop_Model_CharacterMoveVelocityEnd.id = base.owner.id; coop_Model_CharacterMoveVelocityEnd.time = actUpdateTimer; coop_Model_CharacterMoveVelocityEnd.pos = base.owner._position; Coop_Model_CharacterMoveVelocityEnd coop_Model_CharacterMoveVelocityEnd2 = coop_Model_CharacterMoveVelocityEnd; Quaternion rotation = base.owner._rotation; Vector3 eulerAngles = rotation.get_eulerAngles(); coop_Model_CharacterMoveVelocityEnd2.direction = eulerAngles.y; coop_Model_CharacterMoveVelocityEnd.sync_speed = character.moveSyncSpeed; coop_Model_CharacterMoveVelocityEnd.motion_id = moveMotion; SendBroadcast(coop_Model_CharacterMoveVelocityEnd, false, null, null); } actUpdateTimer = 0f; actUpdateSendFlag = false; } }
protected float EvaluateDangerWithTargetCondition(Brain brain, StageObject target) { float val = 1f; if (target is Character) { Character character = target as Character; Character.ACTION_ID actionID = character.actionID; val = ((actionID != Character.ACTION_ID.ATTACK) ? 50f : 80f); } return(EvaluateValue(val, 1f, 100f)); }
public override void HandleEvent(Brain brain, BRAIN_EVENT ev, object param) { base.HandleEvent(brain, ev, param); if (ev == BRAIN_EVENT.END_ACTION) { int num = (int)param; Character.ACTION_ID aCTION_ID = (Character.ACTION_ID) 20; if (num == (int)aCTION_ID) { SetStatus(STATUS.COMPLETED); } } }
private void OnTriggerEnter(Collider other) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) if (selfInstanceId == other.get_gameObject().GetInstanceID() && self != null) { bool flag = self.hitOffFlag == StageObject.HIT_OFF_FLAG.NONE; Character.ACTION_ID actionID = self.actionID; if (actionID == Character.ACTION_ID.DAMAGE || actionID == Character.ACTION_ID.MAX || actionID == (Character.ACTION_ID) 19 || actionID == (Character.ACTION_ID) 31) { flag = true; } if (self.isActSpecialAction) { flag = true; } if (flag && this.get_enabled()) { SetEnableCollider(false); this.StartCoroutine(SetEnableCollider(true, 1f)); ReactPlayer(self); } } }