Exemple #1
0
    protected virtual void OnInitialize()
    {
        //IL_009d: Unknown result type (might be due to invalid IL or missing references)
        //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
        //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
        //IL_00b2: Unknown result type (might be due to invalid IL or missing references)
        //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d3: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d8: Unknown result type (might be due to invalid IL or missing references)
        //IL_00dd: Unknown result type (might be due to invalid IL or missing references)
        opponentMem           = new OpponentMemory(this);
        targetCtrl            = new TargetController(this);
        moveCtrl              = new MoveController(this);
        weaponCtrl            = new WeaponController(this);
        opponentMemSpanTimer  = new SpanTimer(param.thinkParam.opponentMemorySpan);
        targetUpdateSpanTimer = new SpanTimer(param.thinkParam.targetUpdateSpan);
        _frontTransform       = GetFront();
        _backTransform        = GetBack();
        rootInternalRedius    = param.sensorParam.internalRadius * GetScale();
        Vector2 val = frontPositionXZ - owner.positionXZ;

        rootFrontDistance = val.get_magnitude() - rootInternalRedius;
        Vector2 val2 = backPositionXZ - owner.positionXZ;

        rootBackDistance = val2.get_magnitude() - rootInternalRedius;
    }
Exemple #2
0
    private void Start()
    {
        Transform ctrl = GetCtrl(UI.SCR_MENU);

        homeButton = Utility.FindChild(ctrl, "BtnHome");
        SetActive((Enum)UI.SPR_NEW_MAP, false);
        mapCheckSpan = new SpanTimer(2f);
    }
Exemple #3
0
 public Goal_Think SetChoiceGoalSpanTimer(float span)
 {
     choiceGoalSpanTimer = new SpanTimer(span);
     return(this);
 }
Exemple #4
0
 protected override void Awake()
 {
     base.Awake();
     sendInfoSpan = new SpanTimer(3600f);
 }