示例#1
0
    // Use this for initialization
    void Start()
    {
        NextScan = Time.realtimeSinceStartup + ScanDelay;

        var db = GetComponent <DebugFlag>();

        DebugLevel = db == null ? 0 : db.Level;
    }
示例#2
0
        // Use this for initialization
        void Start()
        {
            NCS = GetComponent <NavigationControlSystem>();

            var debugFlag = GetComponent <DebugFlag>();

            if (debugFlag != null)
            {
                DebugLevel = debugFlag.Level;
            }
        }