public void SetupNanoSettings(NanoSetup.NanoSetupStruct settings) { if (settuped) { return; } player.speed *= settings.speedMultiplier; attackSystem.MultiplyAttackRadious(settings.attackRadius); WaitForNanoSetup(player.transform.localScale.x * settings.scaleMultiplier, settings.FOV); }
private void Start() { settuped = false; startSettings = new NanoSetup.NanoSetupStruct(); player = GetComponent <PlayerController>(); attackSystem = GetComponent <AttackSystem>(); startSettings.FOV = 5; startSettings.scaleMultiplier = transform.localScale.x; startSettings.speedMultiplier = player.speed; startSettings.attackRadius = attackSystem.GetRadious(); cam = Camera.main; }