public StoppingState(WalkAroundCircleAi aParent) { mParent = aParent; mStoppingTime = Random.Range(kMinStoppingTime, kMaxStoppingTime); }
public WalkingState(WalkAroundCircleAi aParent) { mParent = aParent; mTargetPosition = mParent.mCenterPosition.vector2 + Random.Range(0, mParent.mRange) * VectorCalculator.randomVector(); }