Example #1
0
    private void Awake()
    {
        Debug.Log("Awake");
        myScriptScale = new ScriptScale();
        myScriptScale.PersonWidth = PersonWidth;
        myScriptScale.InterPersonSpacing = InterPersonSpacing;
        myScriptScale.InterHouseSpacing = InterHouseSpacing;
        myScriptScale.GenerationGap = GenerationGap;
        myScriptScale.ZScale = ZScale;

        // Let the GUI Manager know about our ZScale
        gui = FindObjectOfType(typeof(GUIManager)) as GUIManager;
        gui.SendMessage("myInitZScale", ZScale);

        myPeople = new MyPeople();
        _generationInformationDictionary = new Dictionary<int, GenerationInformation>();

        _personsBirthPlatformObjects = new GameObject[1500];
        _personsWeddingPlatformObjects = new GameObject[1500];

        _weddingDayDestinationObjects = new GameObject[1500];

        _birthDayDestinationObjects = new GameObject[1500];

        // _personPrefab = Resources.Load("FirstPerson");
    }
Example #2
0
 void myInitScale(ScriptScale myScaleScript)
 {
     _myScriptScale = myScaleScript;
 }