void TurnMonster() { for (int i = 0; i < 5; i++) { bodypart[i].GetComponent <SpriteRenderer>().sprite = monster[i]; } data.SetPlayerState(playerData.PlayerState.monster); }
// Update is called once per frame void Update() { shoot(); //test if (Input.GetKeyDown(KeyCode.Q)) { data.SetPlayerState(playerData.PlayerState.monster); } autoShoot(); detect(); }