// 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); } } }
// Start is called before the first frame update void Start() { score = PlayerDocking.RoboCount().ToString(); text.text = "SCORE : " + score; }