コード例 #1
0
ファイル: AniOn.cs プロジェクト: krswytk/GGJ2020
    // Update is called once per frame
    void Update()
    {
        bool walk = animator.GetBool("ON");

        animator.SetBool("ON", true);
        if (this.gameObject.name == "Player")
        {
            if (PlayerDocking.RoboCount() > 0)
            {
                animator.SetBool("ON", false);
            }
        }
    }
コード例 #2
0
ファイル: Score.cs プロジェクト: krswytk/GGJ2020
 // Start is called before the first frame update
 void Start()
 {
     score     = PlayerDocking.RoboCount().ToString();
     text.text = "SCORE : " + score;
 }