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; }
void Start() { maze = GameObject.FindWithTag("Main").GetComponent <MazeGenerator>(); soundEffectManager = GameObject.FindWithTag("Main").GetComponent <SoundEffectManager>(); debuffManager = GameObject.FindWithTag("Player").GetComponent <DebuffManager>(); }
public override void Revert(DebuffManager manager) { Mob mob = manager.GetComponent <Mob>(); if (mob != null) { mob.RevertSpeed(); } }
public override void Calculate(DebuffManager manager) { Mob mob = manager.GetComponent <Mob>(); if (mob != null) { mob.Scale = factor; } }
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); }
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); }
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; }
void Start() { manager = FindObjectOfType <DebuffManager>(); }
// 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; }