Пример #1
0
 public LoginCompleteControllerImpl(
     Logger logger,
     LoginSessionManager loginSessionManager,
     SettingsManager settingsManager,
     DebuffManager debuffManager,
     PlayerManager playerManager,
     ServerDispatchController serverDispatchController,
     Debugger debugger,
     DebuffInformation.Factory debuffInformationFactory,
     Player.Factory playerFactory,
     MainView mainView)
 {
     _logger                   = logger.Scope("LoginCompleteController");
     _settingsManager          = settingsManager;
     _loginSessionManager      = loginSessionManager;
     _debuffInformationFactory = debuffInformationFactory;
     _debugger                 = debugger;
     _mainView                 = mainView;
     _playerManager            = playerManager;
     _playerFactory            = playerFactory;
     _serverDispatchController = serverDispatchController;
     _debuffManager            = debuffManager;
     _vitaeTimer               = new Timer();
     _vitaeTimer.Elapsed      += new ElapsedEventHandler(VitaeTimerChecker);
     _vitaeTimer.Interval      = 10000;
     _vitaeTimer.AutoReset     = false;
 }
Пример #2
0
    void Start()
    {
        maze = GameObject.FindWithTag("Main").GetComponent <MazeGenerator>();

        soundEffectManager = GameObject.FindWithTag("Main").GetComponent <SoundEffectManager>();

        debuffManager = GameObject.FindWithTag("Player").GetComponent <DebuffManager>();
    }
Пример #3
0
    public override void Revert(DebuffManager manager)
    {
        Mob mob = manager.GetComponent <Mob>();

        if (mob != null)
        {
            mob.RevertSpeed();
        }
    }
Пример #4
0
    public override void Calculate(DebuffManager manager)
    {
        Mob mob = manager.GetComponent <Mob>();

        if (mob != null)
        {
            mob.Scale = factor;
        }
    }
Пример #5
0
    void Start()
    {
        maze = GameObject.FindWithTag("Main").GetComponent <MazeGenerator>();

        player = GameObject.FindWithTag("Player");

        soundEffectManager = GameObject.FindWithTag("Main").GetComponent <SoundEffectManager>();

        bloodSplatter = GameObject.FindWithTag("Main").GetComponent <BloodSplatter>();

        debuffManager = GameObject.FindWithTag("Player").GetComponent <DebuffManager>();

        attackingRadius = minimumAttackingRadius + (float)random.NextDouble() * (maximumAttackingRadius - minimumAttackingRadius);
    }
Пример #6
0
        public override void Move(Projectile projectile, GameObject target)
        {
            Instantiate(AOEEffect, projectile.transform).transform.parent = null;
            Collider[] hits = Physics.OverlapSphere(projectile.transform.position, Radius, LayerMask.GetMask("Enemy"));

            for (int i = 0; i < hits.Length; i++)
            {
                DebuffManager debuffManager = hits[i].gameObject.GetComponent <DebuffManager>();
                if (debuffManager != null)
                {
                    debuffManager.AddDebuff(debuff);
                }
            }

            Destroy(projectile.gameObject);
        }
Пример #7
0
 public PluginTermCompleteControllerImpl(
     Logger logger,
     GlobalProvider globals,
     MainView mainView,
     LoginCompleteController loginCompleteController,
     DebuffManager debuffManager,
     RelogManager relogManager,
     PlayerManager PlayerManager)
 {
     _logger                  = logger.Scope("PluginTermCompleteController");
     _PlayerManager           = PlayerManager;
     _globals                 = globals;
     _relogManager            = relogManager;
     _mainView                = mainView;
     _loginCompleteController = loginCompleteController;
     _debuffManager           = debuffManager;
 }
Пример #8
0
 void Start()
 {
     manager = FindObjectOfType <DebuffManager>();
 }
Пример #9
0
 // Start is called before the first frame update
 private void Awake()
 {
     player      = GameObject.Find(GlobalReferences.player).GetComponent <PlayerController>();
     visionLight = GameObject.Find(GlobalReferences.visionLight).GetComponent <Light2D>();
     instance    = this;
 }