Exemplo n.º 1
0
 void Start()
 {
     LClass.Init();
     load = GameObject.Find("UICanvas").GetComponentInChildren <LoadingScreen>(true);
     if (startConfig != null && startConfig["type"] == "load")
     {
         StartCoroutine(LoadGame());
         return;
     }
     StartCoroutine(BeginNewGame());
 }
Exemplo n.º 2
0
        /// <summary>
        /// Converts to host language type to a fluentscript type.
        /// </summary>
        /// <param name="hostLangType"></param>
        /// <returns></returns>
        public static LObject ConvertToLangUnit(object obj)
        {
            var type       = obj.GetType();
            var lclassType = new LClassType();

            lclassType.Name     = type.Name;
            lclassType.FullName = type.FullName;
            lclassType.DataType = type;
            lclassType.TypeVal  = TypeConstants.Unit;
            var lclass = new LClass(obj);

            lclass.Type = lclassType;
            return(lclass);
        }
Exemplo n.º 3
0
        internal FrameTiles(Tile lineX, Tile lineY, Tile lSide, Tile lUp, Tile lDown, Tile cornerUp, Tile cornerDown)
        {
            var def = new Tile();

            if (lineX == def || lineY == def || lSide == def || lUp == def || lDown == def || cornerUp == def ||
                cornerDown == def)
            {
                Initialized = false;
                return;
            }
            Line        = new LineClass(lineX, lineY);
            L           = new LClass(lSide, lUp, lDown);
            Corner      = new CornerClass(cornerUp, cornerDown);
            Initialized = true;
        }
        public void TestMethod1()
        {
            var c = new LClass();

            c.Do();
        }
Exemplo n.º 5
0
 public void Start()
 {
     LClass.Init();
     StartCoroutine(Start2());
 }