Exemple #1
0
    public void Kakudosetter()
    {
        sunrise d1 = scriptbox.GetComponent <sunrise>();

        setkakudo  = (d1.settime_time / 86400) * 360;
        risekakudo = (d1.risetime_time / 86400) * 360;
    }
Exemple #2
0
    public void SeasonValueChanged(int result)
    {
        Allseasons d5 = scriptbox.GetComponent <Allseasons>();
        sunrise    d4 = scriptbox.GetComponent <sunrise>();

        switch (result)
        {
        case 0:
            Spring();    //春分秋分
            d5.notallseasons();
            break;

        case 1:
            Summer();    //夏至
            d5.notallseasons();
            break;

        case 2:
            Winter();    //冬至
            d5.notallseasons();
            break;

        case 3:
            Today();    //本日
            d5.notallseasons();
            break;

        case 4:
            theta        = 0;
            X            = 80;
            daytext.text = "春夏秋冬";
            d5.seasons();   //4seasons
            d4.Shrink();    //同期させるのに使う
            //
            break;
        }
    }