// Use this for initialization void Start() { sRend = GetComponent <SpriteRenderer>(); defaultColor = sRend.material.color; states = SMUDGE_STATE.WAIT; StartCoroutine(CreateFSM()); }
// Update is called once per frame void Update() { if (systemRecord.shardNum >= 6) { states = SMUDGE_STATE.VISIBLE; } else { states = SMUDGE_STATE.WAIT; } }