public override void OnInspectorGUI() { DrawDefaultInspector(); if (GUILayout.Button("fire")) { blk.setwall(); } }
public override void AgentReset() { Wall.setwall(); transform.localPosition = Wall.transform.right * Random.Range(-1, -6) + Wall.transform.forward * Random.Range(-1, -6) + Vector3.up * 0.5f; transform.localRotation = Quaternion.identity; Target.localPosition = Wall.transform.right * Random.Range(1, 6) + Wall.transform.forward * Random.Range(1, 6) + Vector3.up * 0.5f; rb_bouncer.velocity = Vector3.zero; rb_bouncer.angularVelocity = Vector3.zero; }
public override void AgentReset() { Wall.setwall(); transform.localPosition = Wall.transform.right * Random.Range(-1, -6) + Wall.transform.forward * Random.Range(-1, -6) + Vector3.up * 0.5f; transform.localRotation = Quaternion.identity; //diffculty = m_Academy.FloatProperties.GetPropertyWithDefault("diffculty", 4); diffculty = 1.0f; dif_reset(Mathf.RoundToInt(diffculty)); rb_bouncer.velocity = Vector3.zero; rb_bouncer.angularVelocity = Vector3.zero; }