// A small function for reseting the 'A.I' private void Reset() { win = 0; state = AI.AI_State.RPS; //Vector3 pos = new Vector3(0.0f, 0.0f, 0.0f); //Quaternion rot = new Quaternion(0.0f, 0.0f, 0.0f, 0.0f); //transform.position = pos; //transform.rotation = rot; }
// Update is called once per frame void Update() { if (AI_Script.rock_paper_scissor) { state = AI.AI_State.RPS; } if (AI_Script.directions_state) { state = AI.AI_State.ACHI_MITE_HOI; } State_Change(); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Space)) { if (win == 1) { state = AI.AI_State.ACHI_MITE_HOI; } else { Reset(); } State_Change(); } }
// A small function for reseting the 'A.I' private void Reset() { state = AI.AI_State.RPS; }