Beispiel #1
0
 void GameSettings()
 {
     GameInstance = (GameObject)Instantiate(GameInstancePrefab);
     TitleText.SetActive(false);
     //TitleCamera.SetActive (false);
     sphereController.SetActive(false);
     cubesController.GetComponent <CubesController> ().GameStart();
     InstanceStage = (GameObject)Instantiate(StagePrefab, Vector3.zero, Quaternion.identity);
     InstanceStage.transform.parent = GameInstance.transform;
     Enhanced.SetActive(true);
     Menu.SetActive(false);
 }
Beispiel #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Id.Length != 0)
        {
            hash ^= Id.GetHashCode();
        }
        hash ^= tiles_.GetHashCode();
        if (master_ != null)
        {
            hash ^= Master.GetHashCode();
        }
        if (Random != false)
        {
            hash ^= Random.GetHashCode();
        }
        if (TileWidth != 0)
        {
            hash ^= TileWidth.GetHashCode();
        }
        if (TileHeight != 0)
        {
            hash ^= TileHeight.GetHashCode();
        }
        if (ColourBlended != false)
        {
            hash ^= ColourBlended.GetHashCode();
        }
        if (Enhanced != false)
        {
            hash ^= Enhanced.GetHashCode();
        }
        if (EnhancedThreshold != 0)
        {
            hash ^= EnhancedThreshold.GetHashCode();
        }
        if (EdgeDetection != false)
        {
            hash ^= EdgeDetection.GetHashCode();
        }
        hash ^= edges_.GetHashCode();
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Beispiel #3
0
 void MenuSetting()
 {
     Enhanced.SetActive(false);
     cc.transform.parent = titleCamerapos.transform;
     Destroy(InstanceStage);
     InstanceObsCon.GetComponent <ObstacleControllSync> ().DestroyAll();
     Destroy(InstanceObsCon);
     foreach (GameObject data in players.Values)
     {
         Destroy(data);
     }
     DataClear();
     //TitleCamera.SetActive (true);
     TitleText.SetActive(true);
     sphereController.SetActive(true);
     cubesController.SetActive(true);
     cubesController.GetComponent <CubesController> ().CubeSetting();
     Menu.SetActive(true);
 }