void OnEnable() { // _targetBot = (Bot)target; _botDebugValues = new BotDebugValues((Bot)target); _botDebugValues.DebugDistanceType = ""; if (target is BotLocomotive) { //_targetBotLocomotive = (BotLocomotive)target; _botDebugValues.TargetBotLocomotive = (BotLocomotive)target; } }
protected override void SetTarget(T target) { base.SetTarget(target); _botDebugValues = new BotDebugValues(Target); }