private void OnInstantiateSettings()
        {
            var position = transform.position;

            GetComponent <MeshRenderer>().material.color = new Color(1 - position.y / (VisualizingManager.GetInstance().AvgHeight * 2),
                                                                     position.y / (VisualizingManager.GetInstance().AvgHeight * 2), 0, 1);
        }
示例#2
0
 private void Awake() => _instance = this;