Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        Resultdeliver       = GameObject.Find("ResultDeliver");
        Resultdeliverscript = Resultdeliver.GetComponent <ResultDeliver>();

        Textdeliver       = GameObject.Find("DeliverText");
        Textdeliverscript = Textdeliver.GetComponent <TextDeliver>();

        ResultText      = GetComponentInChildren <Text>();
        ResultText.text = "あなたの力で\n" + Resultdeliverscript.deliverString + "に\n届きました\n\nメッセージ内容\n" + Textdeliverscript.deliverText;
        Debug.Log(Textdeliverscript.deliverText);
    }
Exemplo n.º 2
0
    //SumAcceleration SumScript;

    void Start()
    {
        totalTime  = minute * 60 + seconds;
        oldSeconds = 0f;
        timerText  = GetComponentInChildren <Text>();

        Sumaho           = GameObject.Find("Sumaho");
        SumAccscript     = Sumaho.GetComponent <SumAcceleration>();
        CalPscript       = Sumaho.GetComponent <CalculatePoint>();
        DecideSendscript = Sumaho.GetComponent <DecideSendCountry>();

        Resultdeliver       = GameObject.Find("ResultDeliver");
        Resultdeliverscript = Resultdeliver.GetComponent <ResultDeliver>();
    }