private object GetGlobalDefaultValue(GlobalField field)
        {
            switch (field)
            {
            case GlobalField.ExecutionTime:
                return(DateTime.Now);

            case GlobalField.Language:
                return(Thread.CurrentThread.CurrentUICulture.Name);

            case GlobalField.ReportFolder:
            case GlobalField.ReportName:
            case GlobalField.UserID:
                return(null);
            }

            return(null);
        }
Exemple #2
0
 void Start()
 {
     globalField  = GameObject.FindGameObjectWithTag("GlobalField").GetComponent <GlobalField>();
     framerate    = (Application.targetFrameRate = 30);
     Maincamera   = GameObject.FindGameObjectWithTag("MainCamera");
     sceneManager = GameObject.FindGameObjectWithTag("SceneManager");
     pouseFlg     = false;
     sceneManager.GetComponent <SceneManager>().changePouse(pouseFlg);
     destroyPoint            = new float[2];
     FISH                    = 0;
     TRASH                   = 1;
     destroyPoint[FISH]      = (Maincamera.GetComponent <Camera>().ViewportToWorldPoint(new Vector3(0.0f, 1.01f, 0.0f))).y;
     destroyPoint[TRASH]     = (Maincamera.GetComponent <Camera>().ViewportToWorldPoint(new Vector3(0.0f, -0.01f, 0.0f))).y;
     TRASHSPOWNINACTIVEPOINT = (Maincamera.GetComponent <Camera>().ViewportToWorldPoint(new Vector3(0.0f, trashSpownInactiveVPy, 0.0f))).y;
     spownPoint              = -0.002f;
     life.max                = 5;
     spoNumRiverLine.max     = 5;
     waveAddFish             = 4;
     rockPlaceSecond         = (int)(Application.targetFrameRate * 0.8);
     biteBreakCnt            = (int)(Application.targetFrameRate * 5.0);
     reset();
     xspownCenter = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Transform>().position.x;
     {
         ArrayList tempArray  = new ArrayList();
         ArrayList tempArray2 = new ArrayList();
         for (int i = 0; i < spownPointx.Length; i++)
         {
             tempArray.Add(Maincamera.GetComponent <Camera>().ViewportToWorldPoint(new Vector3(spownPointx[i], spownPoint, (float)LEYER.FISH)));
             tempArray2.Add(Maincamera.GetComponent <Camera>().ViewportToWorldPoint(new Vector3(spownPointx[i], 1.01f, (float)LEYER.TRASH)));
         }
         fishSpownPoint  = (Vector3[])tempArray.ToArray(typeof(Vector3));
         trashSpownPoint = (Vector3[])tempArray2.ToArray(typeof(Vector3));
     }
     Bite      = new GameObject[spoNumBite.max];
     Fish      = new GameObject[spoNumFish.max];
     RiverLine = new GameObject[spoNumRiverLine.max];
 }
Exemple #3
0
        private object GetGlobalDefaultValue(GlobalField field)
        {
            switch (field)
            {
                case GlobalField.ExecutionTime:
                    return DateTime.Now;

                case GlobalField.Language:
                    return Thread.CurrentThread.CurrentUICulture.Name;

                case GlobalField.ReportFolder:
                case GlobalField.ReportName:
                case GlobalField.UserID:
                    return null;
            }

            return null;
        }
Exemple #4
0
 void Start()
 {
     globalField = GameObject.Find("GlobalField").GetComponent <GlobalField>();
     waveManager = GameObject.FindGameObjectWithTag("SpownPoint").GetComponent <WaveManager>();