// Use this for initialization
 void Start()
 {
     _GDB            = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
     _SEL            = GameObject.FindGameObjectWithTag("MainUI").GetComponent <Select>();
     style           = _SEL.style;
     gameObject.name = "ShopStation(Clone)";
 }
    // Use this for initialization
    void Awake()
    {
        _GDB = gameObject.GetComponent <GlobalDB>();
        _s   = gameObject.GetComponent <Select>();

        TimerDown = 0;
    }
 // Use this for initialization
 void Start()
 {
     _GDB = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
     _SEL = GameObject.FindGameObjectWithTag("MainUI").GetComponent <Select>();
     _SB  = gameObject.GetComponent <ShipBuild>();
     _sbm = gameObject.GetComponent <Station>();
 }
    // Use this for initialization
    void Start()
    {
        _GDB      = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
        AIStation = station.GetComponent <GhostBuilding> ().Building;
        check     = true;

        AIError = true;
    }
示例#5
0
    // Use this for initialization
    void Start()
    {
        StartTime = ScientTime;

        Owner     = gameObject.GetComponent <Magic> ();
        _GDB      = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
        LockTimer = Random.Range(0, 15);
    }
示例#6
0
    void Start()
    {
        Camera = GameObject.FindGameObjectWithTag("MainCamera");
        _GDB   = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
        _GDB.dwarfList.Add(gameObject);

        _AS = gameObject.GetComponent <ActiveState>();
    }
示例#7
0
    // Use this for initialization
    void Start()
    {
        _sbm = gameObject.GetComponent <ShipBuildModule>();
        _sb  = gameObject.GetComponent <Station>();
        _sel = GameObject.FindGameObjectWithTag("MainUI").GetComponent <Select>();

        _GDB = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
    }
 // Use this for initialization
 void Start()
 {
     _GDB = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
     if (!staticTrigger)
     {
         _GDB.obj.Add(gameObject);
     }
 }
 void Start()
 {
     _timerDown      = timer;
     _GDB            = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
     _SEL            = GameObject.FindGameObjectWithTag("MainUI").GetComponent <Select>();
     style           = _SEL.style;
     gameObject.name = "Mining(Clone)";
 }
 // Use this for initialization
 void Start()
 {
     _es    = gameObject.GetComponent <SensorModule>();
     _h     = gameObject.GetComponent <HealthModule>();
     _st    = gameObject.GetComponent <Stats>();
     _agent = gameObject.GetComponent <MoveComponent>();
     _GDB   = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
 }
示例#11
0
        public void PopolaOggettiForm()
        {
            ddlProv.DataSource     = GlobalDB.ListProvince();
            ddlProv.DataTextField  = "descrizione";
            ddlProv.DataValueField = "sigla";
            var li = ddlProv.Items[0];

            ddlProv.DataBind();
            ddlProv.Items.Insert(0, li);
        }
    void Start()
    {
        hasFailed = false;

        neuralnet = new NNet();
        neuralnet.CreateNet(2, 8, 8, 8);

        _GDB = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
        _SEL = GameObject.FindGameObjectWithTag("MainUI").GetComponent <Select>();
    }
    private Task LoadBackgroundImageAsync(string name)
    {
        var retv = new Task(() =>
        {
            var source = GlobalDB.GetImage(name, 400);
            source.Freeze();
            BackgroundImage = source;
        });

        retv.Start();
        return(retv);
    }
示例#14
0
    void Start()
    {
        _st    = gameObject.GetComponent <Stats> ();
        _es    = gameObject.GetComponent <SensorModule> ();
        _GDB   = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
        _AS    = gameObject.GetComponent <ActiveState> ();
        _agent = gameObject.GetComponent <MoveComponent> ();

        Reaction = Random.Range(3, 5);

        if (!_st.miner)
        {
            BattleShip = true;
        }
    }
 // Use this for initialization
 void Start()
 {
     BuildAnimMesh.GetComponent <Animator>().speed = 0;
     _SEL = GameObject.FindGameObjectWithTag("MainUI").GetComponent <Select>();
     _GDB = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
     if (AI)
     {
         gameObject.tag = "BuildingBuildingEnemy";
     }
     if (FreandAI)
     {
         gameObject.tag = "BuildingBuildingFreand";
     }
     gameObject.name = "BuildingStation(Clone)";
 }
    // Use this for initialization
    void Start()
    {
        ShildModel = gameObject.GetComponentInChildren <Forcefield>().gameObject;

        ProtectPosition = new Vector2[12];
        radius          = new List <float>();

        _GDB = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
        _es  = gameObject.GetComponent <SensorModule>();
        if (Ship)
        {
            _st = gameObject.GetComponent <Stats>();
            _as = gameObject.GetComponent <ActiveState>();
        }
        if (Station)
        {
            _sb = gameObject.GetComponent <Station>();
        }
        timer = Random.Range(0.01f, 10);
    }
示例#17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var numPazienti = string.Empty;
            var bCheckConn  = GlobalDB.CheckConn(ref numPazienti);

            if (bCheckConn)
            {
                lblCheckConn.Text      = "Numero totali pazienti nel DB: " + numPazienti;
                lblCheckConn.CssClass += " label-success";
            }
            else
            {
                lblCheckConn.Text     = numPazienti;
                lblCheckConn.CssClass = "label-warning";
            }


            // Sulla Home ripulisco sempre le variabili di sessione
            // per evitare di avere consulti associati ad altri pazienti precedentemente selezionati
            Session.Remove("Paziente");
            Session.Remove("IdConsulto");
        }
    // Use this for initialization
    void Start()
    {
        GameObject MainUI = GameObject.FindGameObjectWithTag("MainUI");

        _sel = MainUI.GetComponent <Select>();
        _GDB = MainUI.GetComponent <GlobalDB>();
        _GLS = MainUI.GetComponent <GlobalLockingSystem>();


        if (gameObject.GetComponent <Text>())
        {
            TargetText = gameObject.GetComponent <Text>();
        }
        if (gameObject.GetComponent <Image>())
        {
            TargetImage = gameObject.GetComponent <Image>();
        }
        if (gameObject.GetComponent <Toggle>())
        {
            TargetToggle = gameObject.GetComponent <Toggle>();
        }
    }
示例#19
0
 private void Start()
 {
     _GlobalDB = GetComponentInParent <GlobalDB>();
     Draw();
 }
 // Use this for initialization
 void Start()
 {
     _GDB = gameObject.GetComponent <GlobalDB>();
     _GM  = gameObject.GetComponent <GameMenu>();
     _BUI = gameObject.GetComponent <BackgroudUI>();
 }
示例#21
0
 // Use this for initialization
 void Start()
 {
     _sel = gameObject.GetComponent <Select>();
     _GDB = gameObject.GetComponent <GlobalDB>();
 }
 // Use this for initialization
 void Start()
 {
     _GDB = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
 }
示例#23
0
 // Use this for initialization
 void Start()
 {
     Ccamera    = GameObject.FindGameObjectWithTag("CAMERAMOVE");
     _GDB       = gameObject.GetComponent <GlobalDB>();
     ClickDelay = 0.2f;
 }
示例#24
0
        public void AddPlcBlocks(PlcBlockGroup plcGroup, TreeNode node)
        {
            // first add all plc blocks
            foreach (PlcBlock plcBlock in plcGroup.Blocks)
            {
                TreeNode n = null;

                if (plcBlock is OB)
                {
                    n     = new TreeNode(plcBlock.Name + " [OB" + plcBlock.Number.ToString() + "]");
                    n.Tag = plcBlock;
                    //n.ToolTipText = "Version " + plcBlock.HeaderVersion.ToString();
                    n.ImageIndex = 2;

                    OB ob = (OB)plcBlock;
                    if (ob.SecondaryType.Contains("Safe"))
                    {
                        n.BackColor  = Color.Yellow;
                        n.ImageIndex = 7;
                    }
                }
                else if (plcBlock is FB)
                {
                    n            = new TreeNode(plcBlock.Name + " [FB" + plcBlock.Number.ToString() + "]");
                    n.Tag        = plcBlock;
                    n.ImageIndex = 3;

                    FB fb = (FB)plcBlock;
                    if ((fb.ProgrammingLanguage == ProgrammingLanguage.F_LAD) ||
                        (fb.ProgrammingLanguage == ProgrammingLanguage.F_FBD))
                    {
                        n.BackColor  = Color.Yellow;
                        n.ImageIndex = 8;
                    }
                }
                else if (plcBlock is FC)
                {
                    n            = new TreeNode(plcBlock.Name + " [FC" + plcBlock.Number.ToString() + "]");
                    n.Tag        = plcBlock;
                    n.ImageIndex = 4;
                }
                else if (plcBlock is InstanceDB)
                {
                    n            = new TreeNode(plcBlock.Name + " [DB" + plcBlock.Number.ToString() + "]");
                    n.Tag        = plcBlock;
                    n.ImageIndex = 5;

                    InstanceDB db = (InstanceDB)plcBlock;
                    n.Name = db.Name + "[DB" + db.Number.ToString() + "]";
                    if (db.ProgrammingLanguage == ProgrammingLanguage.F_DB)
                    {
                        n.BackColor  = Color.Yellow;
                        n.ImageIndex = 6;
                    }
                }
                else if (plcBlock is GlobalDB)
                {
                    n            = new TreeNode(plcBlock.Name + " [DB" + plcBlock.Number.ToString() + "]");
                    n.Tag        = plcBlock;
                    n.ImageIndex = 5;

                    GlobalDB db = (GlobalDB)plcBlock;
                    n.Name = db.Name + "[FB" + db.Number.ToString() + "]";
                    if (db.ProgrammingLanguage == ProgrammingLanguage.F_DB)
                    {
                        n.BackColor  = Color.Yellow;
                        n.ImageIndex = 6;
                    }
                }

                n.SelectedImageIndex = n.ImageIndex;
                node.Nodes.Add(n);
            }

            // then add groups and search recursive
            foreach (PlcBlockGroup group in plcGroup.Groups)
            {
                TreeNode n = new TreeNode(group.Name);
                n.Tag                = group;
                n.ImageIndex         = 1;
                n.SelectedImageIndex = 1;

                AddPlcBlocks(group, n);
                node.Nodes.Add(n);
            }
        }
示例#25
0
 private void Start()
 {
     _GlobalDB = gameObject.GetComponentInParent <GlobalDB>();
 }
示例#26
0
 // Use this for initialization
 void Start()
 {
     _st    = gameObject.GetComponent <Stats>();
     _GDB   = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
     _agent = gameObject.GetComponent <MoveComponent>();
 }
示例#27
0
 void Start()
 {
     _GDB = gameObject.GetComponent <GlobalDB>();
 }
 // Use this for initialization
 void Start()
 {
     _GDB   = GameObject.FindGameObjectWithTag("MainUI").GetComponent <GlobalDB>();
     Target = gameObject.GetComponent <UnityEngine.UI.Text> ();
 }