public void Bind(Positioning pos) { if (!m_Init) { Init(); } pos.Position .Subscribe((x) => m_TF.position = x) .AddTo(this); pos.Rotation .Subscribe((x) => m_TF.rotation = x) .AddTo(this); pos.Scale .Subscribe((x) => m_TF.localScale = x) .AddTo(this); }
public Info(float speed, int hp = 1) { Positioning = new Positioning(speed); Health = new Health(hp); }
private void CheckFarFromUpperBorder(Positioning pos) { pos.FarFromBorder = m_Borders.Up - pos.Position.Value.x > m_Params.MinDistance; }