Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class AdverseEffects : MonoBehaviour {
  5.  
  6.     public bool poisonOn = false;
  7.  
  8.     public PlayerInfo PI;
  9.  
  10.     void Update()
  11.     {
  12.         if (poisonOn)
  13.         {
  14.             PI.InvokeRepeating("CalculationHP", 2, 2);
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement