Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Player : MonoBehaviour, IPlayer
- {
- //Some variables here
- int MobCounter, Rank, Timer;
- string NodeName, Channel; //Save this as int if nodes and channels have an index
- //Whatever the player should do else comes here
- private void OnMobKill() //Caused whenever any mob has been killed.
- {
- Timer = 0;
- if (/*Get the players current node*/ != NodeName || /*Get the players current channel*/ != Channel)
- {
- MobCounter = 0;
- Rank = 1;
- NodeName = /*Get the players current node*/;
- Channel = /*Get the players current channel*/;
- }
- else
- {
- MobCounter++;
- if (MobCounter >= /*Get ((PlayerGearScore * 2) + 100)*/ && Rank < 5)
- {
- MobCounter = 0;
- Rank++;
- }
- }
- }
- //Count the timer up to 10 minutes (600 seconds) in the background
- private void Reset() //This method resets every value if the player doesnt kill anything within 10 minutes
- {
- if (Timer >= 600)
- //Reset all other 4 values to default
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement