public void Randomize() { affinity = (Source.Affinity)UnityEngine.Random.Range(0f, System.Enum.GetValues(typeof(Source.Affinity)).Length); if (UnityEngine.Random.Range(0f, 1f) > 0.5f) { slope = 1f; } else { slope = -1f; } }
public void Setup(Source.Affinity affinity, float slope, bool crossed) { this.affinity = affinity; this.slope = slope; this.crossed = crossed; }