示例#1
0
        // Awake
        void Awake()
        {
            largeFont          = new GUIStyle();
            largeFont.fontSize = 32;
            if (correctlyPlace)
            {
                instance = this;

                if (this.enabled)
                {
                    SwitchModes();
                }
                else
                {
                    MeterMode = MeterModes.Disable;
                }

                outdated = true;
            }
        }
 // OnEnable
 void OnEnable()
 {
     myTarget    = ( MainMeter )target;
     metersCount = FindObjectsOfType <MainMeter>().Length;
 }