コード例 #1
0
    public void InitDatabase()
    {
        Debug.Log("Connect GameController of Puzzle02");
        GCP02 = GetComponent <GameControllerPuzzle02>();

        refreshDatabase();
    }
コード例 #2
0
    void Start()
    {
        GCP02       = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>();
        audioSource = GetComponent <AudioSource>();

        bool isHit = false;
    }
コード例 #3
0
    protected override void InitWindow()
    {
        Debug.Log("Init Puzzle02 window");
        base.InitWindow();

        GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>();

        Debug.Log("Call GameController of Puzzle02 to connect");
        GCP02.InitGameController(this);
    }
コード例 #4
0
    // Start is called before the first frame update
    void Start()
    {
        text.gameObject.GetComponent <TextMesh>().color     = Color.black;
        brackets.gameObject.GetComponent <TextMesh>().color = Color.black;

        GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>();

        DBP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <DatabasePuzzle02>();
        DBP02.InitDatabase();

        transform.values = new int[] { 0, 0, 0, 0 };
        transform.values = DBP02.transforms0[index].values;

        Debug.Log("Matrix" + index + ": " + transform.values[0] + ", " + transform.values[1]
                  + ", " + transform.values[2] + ", " + transform.values[3]);

        text.GetComponent <TextMesh>().text = "" + transform.values[0] + "  " + transform.values[1] + "\n"
                                              + transform.values[2] + "  " + transform.values[3];
    }
コード例 #5
0
 // Start is called before the first frame update
 void Start()
 {
     vectorText.gameObject.SetActive(false);
     GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>();
 }
コード例 #6
0
 // Start is called before the first frame update
 void Start()
 {
     GCP02 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle02>();
 }