예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        UnityChan = GameObject.Find("UnityChan");
        UCS       = UnityChan.GetComponent <UnityChanScript>();

        rg = GetComponent <Rigidbody2D>();
    }
예제 #2
0
    void Start()
    {
        _DisplayItemScript = GetComponent <DisplayItemScript>();
        _UnityChanScript   = GetComponent <UnityChanScript>();
        _RainScript        = GetComponent <RainScript>();

        for (int i = 0; i < _DisplayItemScript.getItemList().Length; i++)
        {
            dropdownObject.options.Add(new TMPro.TMP_Dropdown.OptionData(_DisplayItemScript.getItemList()[i].name));
        }
        dropdownObject.captionText.text = dropdownObject.options[0].text;
    }
    void Start()
    {
        //Unityちゃんをオブジェクトの名前から取得して変数に格納する
        unitychan = GameObject.Find("unitychan");
        //unitychanの中にあるUnityChanScriptを取得して変数に格納する
        script = unitychan.GetComponent <UnityChanScript>();

        unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
        context     = unityPlayer.GetStatic <AndroidJavaObject>("currentActivity");

        context.Call("startRecognition");
    }
예제 #4
0
    private void Awake()
    {
        //UI
        main_text          = new TextController(textType.main);
        score_text         = new TextController(textType.score);
        remainingtime_text = new TextController(textType.remainingtime);
        plustime_text      = new TextController(textType.announce);
        CTS = GetComponent <changeText>();

        //ユニティちゃん
        UnityChan = GameObject.Find("UnityChan");
        UCS       = UnityChan.GetComponent <UnityChanScript>();
    }
예제 #5
0
 // Start is called before the first frame update
 void Start()
 {
     //staminaGauge = GameObject.Find("Stamina_gauge").GetComponent<Slider>();
     //expGauge = GameObject.Find("Exp_gauge").GetComponent<Slider>();
     ucs = GameObject.Find("SD_unitychan_humanoid").GetComponent <UnityChanScript>();
 }