コード例 #1
0
ファイル: Switch.cs プロジェクト: phenyle/Math-Heads
    private void Start()
    {
        //txtSpanValue.text = spanValue.point1 + "\n" +
        //                              spanValue.point2;

        GCP03  = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle03>();
        player = GameObject.FindGameObjectWithTag("Player").transform;
    }
コード例 #2
0
    private void Start()
    {
        GCP03 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle03>();

        btnChoice = GetComponent <Button>();

        btnChoice.onClick.AddListener(TaskOnClick);
    }
コード例 #3
0
    public void InitDatabase()
    {
        Debug.Log("Connect GameController of Puzzle03");
        GCP03 = GetComponent <GameControllerPuzzle03>();


        //Init sub level environment
        foreach (Transform T in subLevelPlanes)
        {
            T.gameObject.SetActive(false);
        }
        subLevelPlanes[0].gameObject.SetActive(true);
    }
コード例 #4
0
    protected override void InitWindow()
    {
        Debug.Log("Init Puzzle01 window");
        base.InitWindow();

        BtnChoices.Add(BtnChoices1);
        BtnChoices.Add(BtnChoices2);
        BtnChoices.Add(BtnChoices3);

        GCP03 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle03>();
        GCP03.InitGameController(this);

        ClearSpanValues();
        ClearFeedbackPanel();
    }
コード例 #5
0
ファイル: TriggerValue.cs プロジェクト: phenyle/Math-Heads
 private void Start()
 {
     GCP03 = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameControllerPuzzle03>();
 }