Ejemplo n.º 1
0
        private void ClearPage()
        {
            PrivateVariableList.Clear();
            PublicVariableList.Clear();
            ProtectedVariableList.Clear();

            PrivateMethodList.Clear();
            PublicMethodList.Clear();
            ProtectedMethodList.Clear();

            ClassNameTextBox.Text = "";

            NoBaseObjectButton.Select();
            GameObjectSelector.Select();

            UserNameBox.Text    = "";
            DescriptionBox.Text = "";

            PublicVariableDisplay.DataSource    = new List <string>(PublicVariableList);
            PrivateVariableDisplay.DataSource   = new List <string>(PrivateVariableList);
            ProtectedVariableDisplay.DataSource = new List <string>(ProtectedVariableList);

            PrivateMethodDisplay.DataSource   = new List <string>(PrivateMethodList);
            PublicMethodDisplay.DataSource    = new List <string>(PublicMethodList);
            ProtectedMethodDisplay.DataSource = new List <string>(ProtectedMethodList);
        }
Ejemplo n.º 2
0
    protected virtual void Init()
    {
        var gameplayManagersGO = new GameObject("GameplayManagers");

        _minionManager = gameplayManagersGO.AddComponent <MinionManager>();
        _towerManager  = gameplayManagersGO.AddComponent <TowerManager>();
        //_lvlSkillManager = gameplayManagersGO.AddComponent<LevelSkillManager>();
        _minionSkillManager = gameplayManagersGO.AddComponent <MinionsSkillManager>();
        _goSelector         = FindObjectOfType <GameObjectSelector>();
        _floorEffect        = FindObjectOfType <FloorEffect>();

        //_lvlSkillManager.level = this;
        _towerManager.level = _minionManager.level = this;

        SetGameManagerData();

        InitLevelCanvas();

        ConfigureLevelEvents();

        _gameManager.LevelInitFinished(this);
        _minionSkillManager.Init(this);

        ExecuteTutorialStep(null);
    }
Ejemplo n.º 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            GameObjectSelector.Select();
            GenerateButton.Select();

            DataTypeList = GetDataTypeList();

            SetUpAddFunctionality();
        }
Ejemplo n.º 4
0
    void Awake()
    {
        if (!_selector)
        {
            _selector = GetComponent <GameObjectSelector>();
        }

        if (!_movementMotor)
        {
            _movementMotor = GetComponent <MovementMotor>();
        }
    }
Ejemplo n.º 5
0
 private void Awake()
 {
     bucketSelector = GetComponent <GameObjectSelector>();
 }