示例#1
0
 private void Start()
 {
     startConditions = Models.StartConditions;
     BlockModel      = Models.SpaceShip.GetBlockModel(blockType);
     BlockModel.AddToStatus(startConditions.StartBlockStatusValue);
     SetModelValues();
 }
示例#2
0
 private void Awake()
 {
     StatsMath       = new StatsMath();
     SpaceShip       = new SpaceShip();
     CharacterPool   = new CharacterPool();
     StartConditions = new StartConditions();
     ButtonModel     = new ButtonModel();
     Scenario        = new Scenario();
     References      = FindObjectOfType <References>();
 }
示例#3
0
        private void Start()
        {
            spaceShip       = Models.SpaceShip;
            startConditions = Models.StartConditions;
            statsMath       = Models.StatsMath;

            SetStartPeopleCount();
            StartCoroutine(CalculateStats());

            Event.OnEventShown  += TurnStatsOff;
            Event.OnEventClosed += TurnStatsOn;
        }
示例#4
0
        void Start()
        {
            shipController  = FindObjectOfType <ShipController>();
            statsMath       = Models.StatsMath;
            pool            = Models.CharacterPool;
            startConditions = Models.StartConditions;

            AddAllChildren();
            SetStartPeopleCount();

            CharInListView.OnCharClicked += ViewChar;
            Dragable.OnDragEvent         += OnDrag;
            Droppable.OnDropEvent        += OnDrop;
        }