// Start is called before the first frame update void Start() { masterScript = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); audioSource = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <AudioSource>(); dog = GameObject.FindGameObjectWithTag("Dog").GetComponent <Image>(); monkey = GameObject.FindGameObjectWithTag("Monkey").GetComponent <Image>(); pheasant = GameObject.FindGameObjectWithTag("Pheasant").GetComponent <Image>(); if (masterScript.haveDog) { dog.color = new Color(255, 255, 255); } if (masterScript.haveMon) { monkey.color = new Color(255, 255, 255); } if (masterScript.havePhe) { pheasant.color = new Color(255, 255, 255); } oneshot = true; }
// Start is called before the first frame update void Start() { Master = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); water = Master.water; mochi = Master.mochi; sugar = Master.sugar; }
// Start is called before the first frame update void Start() { masterSc = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); audioSource = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <AudioSource>(); cloud1 = GameObject.FindGameObjectWithTag("Cloud1").GetComponent <Image>(); cloud2 = GameObject.FindGameObjectWithTag("Cloud2").GetComponent <Image>(); cloud3 = GameObject.FindGameObjectWithTag("Cloud3").GetComponent <Image>(); if (masterSc.haveDog) { cloud1.color = new Color(0, 0, 0, 0); } if (masterSc.haveMon) { cloud2.color = new Color(0, 0, 0, 0); } if (masterSc.havePhe) { cloud3.color = new Color(0, 0, 0, 0); } oneshot = true; }
private void Start() { Master = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); Master.water = false; Master.sugar = false; Master.mochi = false; }
// Start is called before the first frame update void Start() { Invoke("False", 0); Invoke("Cancel", 3); Invoke("True", 4); speed = 6.0f; Master = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); water = Master.water; mochi = Master.mochi; sugar = Master.sugar; if (water && mochi && sugar) { search = true; message.text = "ボタンをタップしてまぜよう!"; Zairyou[0].SetActive(true); Zairyou[1].SetActive(true); Zairyou[2].SetActive(true); } else { message.text = "ざいりょうがたりません"; } }
// Use this for initialization void Start() { Master = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); shotCount = Master.dango_co; shotCountText.text = shotCount.ToString(); Debug.Log("trtrtr"); button = GetComponent <AudioSource>(); }
private void Start() { master = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); dangoAsset(mochi, master.mochi); dangoAsset(water, master.water); dangoAsset(sugar, master.sugar); audio = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { masterScript = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); // あとでTagに替える friendsButton = GameObject.Find("FriendsButton").GetComponent <Button>(); dangoButton = GameObject.Find("DangoButton").GetComponent <Button>(); // あとでTag替え dangoCo_text = GameObject.Find("DangoCount").GetComponent <Text>(); audioSource = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <AudioSource>(); // ダンゴの数を表示 DangoTextDisplay(); }
// Start is called before the first frame update void Start() { Invoke("False", 0); Invoke("Cancel", 1); Invoke("True", 1); Master = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); Master.water = false; Master.sugar = false; Master.mochi = false; }
private void Start() { masterObj = GameObject.FindGameObjectWithTag("Master"); master = masterObj.GetComponent <h_Master>(); button = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { Master = GameObject.FindGameObjectWithTag("Master").GetComponent <h_Master>(); audio = GetComponent <AudioSource>(); //Player_pos = GetComponent<Transform>().position; }