public float seconds;//お試しクールタイム // Start is called before the first frame update void Start() { HanC = GameObject.Find("Hantei_Roll"); SignalBox = HanC.GetComponent <Hantei_C>(); havescript1 = GameObject.Find("redAN"); havescript2 = GameObject.Find("greenAN"); havescript1.GetComponent <RedAn>().AnotherColorChange(); //赤オン havescript2.GetComponent <GreenAn>().AnotherNoColorChange2P(); //緑オフ }
public float seconds;//お試しクールタイム // Start is called before the first frame update void Start() { HanB = GameObject.Find("Hantei"); SignalBox = HanB.GetComponent <Hantei_B>(); HanC = GameObject.Find("Hantei_Roll"); SignalBox2 = HanC.GetComponent <Hantei_C>(); child2.GetComponent <Red>().ColorChange(); //赤オン child.GetComponent <Green>().NoColorChange2P(); //緑オフ Debug.Log("Child:" + child.name); //子のログ }
// Start is called before the first frame update void Start() { HanC = GameObject.Find("Hantei_Roll"); RollBox = HanC.GetComponent <Hantei_C>(); transform.rotation = Quaternion.Euler(0, 0, Su); }