示例#1
0
    private void Start()
    {
        _agentScripts = transform.GetComponentsInChildren <AnimationInfo>();



        _dropDownRectAgents    = new DropDownRect(new Rect(115, 20, 90, 300));
        _dropDownRectAnimNames = new DropDownRect(new Rect(210, 20, 90, 300));

        _dropDownRectNationality = new DropDownRect(new Rect(115, 60, 90, 300));
        _dropDownRectProfession  = new DropDownRect(new Rect(210, 60, 90, 300));

        for (int i = 0; i < 32; i++)
        {
            _driveParams[i] = new DriveParams();
        }



#if !WEBMODE
        for (int i = 0; i < 32; i++)
        {
            _driveParams[i].ReadValuesDrives(i);
        }
#elif WEBMODE
        for (int i = 0; i < 32; i++)
        {
            this.StartCoroutine(_driveParams[i].GetValuesDrives(i, "funda"));
        }
#endif



        _firstRun = true;



        _agentSelInd = 0;



        _persMapper = new PersonalityMapper();



        foreach (AnimationInfo t in _agentScripts)
        {
            Reset(t);
        }

        AgentText = new GUIText[_agentScripts.Length];

        //   FormatData("motionEffortCoefs.txt");

        MathDefs.SetSeed(30);
    }
示例#2
0
    private void Start()
    {
        _agentScripts = transform.GetComponentsInChildren <AnimationInfo>();



        _dropDownRectAgents = new DropDownRect(new Rect(115, 20, 90, 300));

        for (int i = 0; i < 32; i++)
        {
            _driveParams[i] = new DriveParams();
        }



        for (int i = 0; i < 32; i++)
        {
            _driveParams[i].ReadValuesDrives(i);
        }



        _firstRun = true;



        _agentSelInd = 0;



        _persMapper = new PersonalityMapper();



        foreach (AnimationInfo t in _agentScripts)
        {
            Reset(t);
        }

        AgentText = new GUIText[_agentScripts.Length];

        //   FormatData("motionEffortCoefs.txt");

        MathDefs.SetSeed(30);
    }