Example #1
0
 private void OnDestroy()
 {
     SpaceShip       = null;
     CharacterPool   = null;
     StartConditions = null;
     ButtonModel     = null;
     Scenario        = null;
     References      = null;
     StatsMath       = null;
 }
Example #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>();
 }
Example #3
0
        private void Start()
        {
            spaceShip       = Models.SpaceShip;
            startConditions = Models.StartConditions;
            statsMath       = Models.StatsMath;

            SetStartPeopleCount();
            StartCoroutine(CalculateStats());

            Event.OnEventShown  += TurnStatsOff;
            Event.OnEventClosed += TurnStatsOn;
        }
Example #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;
        }