private void CreateTarget(Target element) { var target = element.GetTargetElement(); target.gameObject.SetActive(true); element.Transform = target.transform; target.transform.position = TargetHelper.GetPositionVector(element.Row, element.Column); }
private void UpdateTarget(Target element) { element.Transform.gameObject.SetActive(false); element.Value = GetTargetValue(); var target = element.GetTargetElement(); target.gameObject.SetActive(true); element.Transform = target.transform; target.transform.position = TargetHelper.GetPositionVector(element.Row, element.Column); _stateManager.RemoveTarget(OldTarget.Row, OldTarget.Column, OldTarget.Value, OldTarget.Round); _stateManager.AddTarget(element.Row, element.Column, element.Value, element.Round); }