public void Init(LocatableItem target, float duration = 15f) { Target = target; ArrowColor.color = target.Color; MenuUtility.LerpFromTransparent(ArrowBase, 1 / 4f, 0f); MenuUtility.LerpFromTransparent(ArrowColor, 1 / 2f, 0.3f); MenuUtility.LerpInFillAmount(ArrowColor, 1 / 2f, 0f); Path.Init(Target, duration, 0.4f); StartCoroutine(End(duration)); }
public void Init(LocatableItem target, Vector3 offset) { Target = target; transform.position += offset; Thumbnail.texture = target.Thumbnail; Border.color = target.Color; MenuUtility.LerpFromTransparent(Background, 0.5f, 0f); MenuUtility.LerpFromTransparent(Thumbnail, 0.5f, 0.2f); MenuUtility.LerpFromTransparent(OuterBorder, 0.125f, 0f); MenuUtility.LerpFromTransparent(Border, 0.125f, 0.2f); MenuUtility.LerpOutFillAmount(OuterBorder, 0.333f, 0.2f); StartCoroutine(End()); AddDirectionIndicator(target); }