public void InitialisationPlayer() { InitController(); //Initialize Gold goldController.SetEnergy(energyCurrent); goldController.SetGoldMax(energyMax); //Initialize MaxLife lifeController.SetLife(lifeMax); lifeController.SetLifeMax(lifeMax); //Initialize FireProperties fireController.SetFireRate(projectileRate); playerController.SetDamageProjectile(projectileDmg); //Initialize CAC Properties meleeController.SetAttackCoolDown(cacRate); playerController.SetDamageMelee(cacDmg); //Initiamlize PlayerMove playerMove.SetDashSpeed(dashSpeed); playerMove.SetJumpSpeed(jumpSpeed); playerMove.SetRunSpeed(runSpeed); //UpgradeController upgradeController.SetCost(costUpgrade); }
protected override void Effect() { player = GameObject.FindGameObjectWithTag("Player"); anim = player.GetComponent <Animator>(); anim.speed = anim.speed + melee; meleeController = player.GetComponent <MeleeController>(); meleeController.SetAttackCoolDown(meleeController.GetAttackCooldown() - melee); }