示例#1
0
    // Use this for initialization
    void Start()
    {
        //Add here
        molecules.Add(h2o);
        molecules.Add (h2o2);
        molecules.Add(ch4);
        molecules.Add (h2so4);
        molecules.Add(chloro1);
        molecules.Add(chloro2);
        molecules.Add(chloro3);
        molecules.Add(chloro4);
        molecules.Add(chloro10);
        molecules.Add(chloro20);
        molecules.Add(chloro30);
        molecules.Add(chloro40);
        //molecules.Add (ccl2f2v1);
        //molecules.Add (ccl2f2v2);
        molecules.Add (ethanol);
        molecules.Add (ethanol2);
        names = new string[]{"h2o","h2o","ch4","h2so4","chloro","chloro","chloro","chloro","chloro","chloro","chloro","chloro","ethanol","ethanol"}; //Add here

        //Add here
        h2obonds.Add ("I",h2obonds1);
        h2obonds.Add ("II", new List<int[]>());
        h2o2bonds.Add ("I", h2o2bonds1);
        h2o2bonds.Add ("II", new List<int[]>());
        ch4bonds.Add ("I",ch4bonds1);
        ch4bonds.Add ("II", new List<int[]>());
        h2so4bonds.Add ("I", h2so4bonds1);
        h2so4bonds.Add ("II", h2so4bonds2);
        chloro1bonds.Add("I",chlorobonds1);
        chloro1bonds.Add("II",chlorobonds2);
        chloro2bonds.Add("I",chlorobonds1);
        chloro2bonds.Add("II",chlorobonds2);
        chloro3bonds.Add("I",chlorobonds1);
        chloro3bonds.Add("II",chlorobonds2);
        chloro4bonds.Add("I",chlorobonds1);
        chloro4bonds.Add("II",chlorobonds2);

        chloro10bonds.Add("I",chloro10bonds1);
        chloro10bonds.Add("II",chloro10bonds2);
        chloro20bonds.Add("I",chloro10bonds1);
        chloro20bonds.Add("II",chloro10bonds2);
        chloro30bonds.Add("I",chloro10bonds1);
        chloro30bonds.Add("II",chloro10bonds2);
        chloro40bonds.Add("I",chloro10bonds1);
        chloro40bonds.Add("II",chloro10bonds2);
        //ccl2f2v1bonds.Add ("I",ccl2f2bonds1);
        //ccl2f2v1bonds.Add ("II", new List<int[]>());
        //ccl2f2v2bonds.Add ("I",ccl2f2bonds1);
        //ccl2f2v2bonds.Add ("II", new List<int[]>());
        ethanolbonds.Add ("I",ethanolbonds1);
        ethanolbonds.Add ("II", new List<int[]>());
        ethanol2bonds.Add ("I",ethanol2bonds1);
        ethanol2bonds.Add ("II", new List<int[]>());

        //Add here
        allbonds = new Dictionary<string, List<int[]>>[]{h2obonds,h2o2bonds,ch4bonds,h2so4bonds,chloro1bonds,chloro2bonds,chloro3bonds,chloro4bonds,chloro10bonds,chloro20bonds,chloro30bonds,chloro40bonds,ethanolbonds,ethanol2bonds};

        progressionIndex = 0;
        //progression = new string[]{"H"+c2+"O","CH"+c4,"H"+c2+"SO"+c4,"CH"+c4,"CCl"+c2+"F"+c2,"CH"+c3+"CH"+c2+"OH"};

        DontDestroyOnLoad(transform.gameObject);

        taskTriggers = new List<GameObject>(GameObject.FindGameObjectsWithTag("TaskTrigger"));
        completedTasks = new List<string>();
        dissolveClass = GameObject.Find("debris1").GetComponent<Dissolving>();
        meltClass = GameObject.Find("Task2-Melt").GetComponent<MeltWall>();
        player = GameObject.Find ("Player");
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        //Add here
        molecules.Add(h2o);
        molecules.Add(h2o2);
        molecules.Add(ch4);
        molecules.Add(h2so4);
        molecules.Add(chloro1);
        molecules.Add(chloro2);
        molecules.Add(chloro3);
        molecules.Add(chloro4);
        molecules.Add(chloro10);
        molecules.Add(chloro20);
        molecules.Add(chloro30);
        molecules.Add(chloro40);
        //molecules.Add (ccl2f2v1);
        //molecules.Add (ccl2f2v2);
        molecules.Add(ethanol);
        molecules.Add(ethanol2);
        names = new string[] { "h2o", "h2o", "ch4", "h2so4", "chloro", "chloro", "chloro", "chloro", "chloro", "chloro", "chloro", "chloro", "ethanol", "ethanol" }; //Add here

        //Add here
        h2obonds.Add("I", h2obonds1);
        h2obonds.Add("II", new List <int[]>());
        h2o2bonds.Add("I", h2o2bonds1);
        h2o2bonds.Add("II", new List <int[]>());
        ch4bonds.Add("I", ch4bonds1);
        ch4bonds.Add("II", new List <int[]>());
        h2so4bonds.Add("I", h2so4bonds1);
        h2so4bonds.Add("II", h2so4bonds2);
        chloro1bonds.Add("I", chlorobonds1);
        chloro1bonds.Add("II", chlorobonds2);
        chloro2bonds.Add("I", chlorobonds1);
        chloro2bonds.Add("II", chlorobonds2);
        chloro3bonds.Add("I", chlorobonds1);
        chloro3bonds.Add("II", chlorobonds2);
        chloro4bonds.Add("I", chlorobonds1);
        chloro4bonds.Add("II", chlorobonds2);

        chloro10bonds.Add("I", chloro10bonds1);
        chloro10bonds.Add("II", chloro10bonds2);
        chloro20bonds.Add("I", chloro10bonds1);
        chloro20bonds.Add("II", chloro10bonds2);
        chloro30bonds.Add("I", chloro10bonds1);
        chloro30bonds.Add("II", chloro10bonds2);
        chloro40bonds.Add("I", chloro10bonds1);
        chloro40bonds.Add("II", chloro10bonds2);
        //ccl2f2v1bonds.Add ("I",ccl2f2bonds1);
        //ccl2f2v1bonds.Add ("II", new List<int[]>());
        //ccl2f2v2bonds.Add ("I",ccl2f2bonds1);
        //ccl2f2v2bonds.Add ("II", new List<int[]>());
        ethanolbonds.Add("I", ethanolbonds1);
        ethanolbonds.Add("II", new List <int[]>());
        ethanol2bonds.Add("I", ethanol2bonds1);
        ethanol2bonds.Add("II", new List <int[]>());

        //Add here
        allbonds = new Dictionary <string, List <int[]> >[] { h2obonds, h2o2bonds, ch4bonds, h2so4bonds, chloro1bonds, chloro2bonds, chloro3bonds, chloro4bonds, chloro10bonds, chloro20bonds, chloro30bonds, chloro40bonds, ethanolbonds, ethanol2bonds };

        progressionIndex = 0;
        //progression = new string[]{"H"+c2+"O","CH"+c4,"H"+c2+"SO"+c4,"CH"+c4,"CCl"+c2+"F"+c2,"CH"+c3+"CH"+c2+"OH"};

        DontDestroyOnLoad(transform.gameObject);

        taskTriggers   = new List <GameObject>(GameObject.FindGameObjectsWithTag("TaskTrigger"));
        completedTasks = new List <string>();
        dissolveClass  = GameObject.Find("debris1").GetComponent <Dissolving>();
        meltClass      = GameObject.Find("Task2-Melt").GetComponent <MeltWall>();
        player         = GameObject.Find("Player");
    }