Esempio n. 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        if (GUILayout.Button("fire"))
        {
            blk.setwall();
        }
    }
Esempio n. 2
0
    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;
    }
Esempio n. 3
0
    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;
    }