//public method for conch class to call if be called will reset the state and disable collider and renderer public void Init( ) { state = MERMAID_MAN_STATE.SETTING; col.enabled = false; rend.enabled = false; transform.parent = parent.transform; }
//public method for conch call this if be called change state to flying and set position public void SetPos(Vector3 pos) { transform.position = pos; col.enabled = true; rend.enabled = true; transform.parent = null; state = MERMAID_MAN_STATE.FLYING; }