public void SetAnim(bool set) { if (b_type != BlockType.MOVEABLE) { return; } Animator sr = coord_obj.GetComponentInChildren <Animator>(); sr.ResetTrigger("try"); if (set) { sr.SetTrigger("try"); } }
public void SetAnim(bool set) { if (b_type != BlockType.MOVEABLE) { return; } Animator sr = coord_obj.GetComponentInChildren <Animator>(); sr.ResetTrigger("try"); if (set) { sr.SetTrigger("try"); } }