Example #1
0
    // Use this for initialization
    void Start()
    {
        dpm = GameObject.Find("GameManager").GetComponent <DicePointManager>();
        dpm.GetDP();

        this.dpText      = this.GetComponent <Text>();
        this.dpText.text = dpm.GetDP().ToString();
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     dpm    = GameObject.Find("GameManager").GetComponent <DicePointManager>();
     button = this.GetComponent <Button>();
     button.onClick.AddListener(OnClickButton);
     button.interactable = false;
     putext      = GetComponentInChildren <Text>();
     putext.text = "自動ダイス間隔+1/m\n" + cost.ToString() + "DP";
 }
Example #3
0
    // Use this for initialization
    void Start()
    {
        dpm = GameObject.Find("GameManager").GetComponent <DicePointManager>();
        //diceObjs.AddRange(GameObject.FindGameObjectsWithTag("Dice"));
        rollList = new List <int> {
            1, 1
        };                              //通常ダイス2個
        rollIndex = 0;
        allStoped = false;

        valTxt.issue1 = check_456;
        valTxt.issue2 = check_coeff;
    }
Example #4
0
 // Use this for initialization
 void Start()
 {
     dpm = GameObject.Find("GameManager").GetComponent <DicePointManager>();
 }