public override string GetDropdownValueName(object property) { if (!(property is Vector2Int)) { return(string.Empty); } Vector2Int res = (Vector2Int)property; return(VectorText.ToText(res)); }
private void Update() { if (ColorZoneManager.Singleton != null && spriteRenderer != null) { spriteRenderer.color = ColorZoneManager.Singleton.current.playerColor; } if (freeze) { rb.velocity = Vector2.zero; return; } rb.velocity = new Vector2(InputManager.GetMapAxisRaw("Horizontal"), InputManager.GetMapAxisRaw("Vertical")) * speed * SpeedMultiplier; InfoDisplayer.DisplayValue("pos", VectorText.ToText(new Vector2(Mathf.Round(transform.position.x), Mathf.Round(transform.position.y)))); }
public static string GetDefaultResolution() => VectorText.ToText(new Vector2(Screen.width, Screen.height));
public override void SetValue(object propertie) => base.SetValue(VectorText.ToText((Vector2Int)propertie));