public void IncrementEnd() { lock (lockObj) { end++; } KillLogMgr.Notify(); }
public void AddLog(Tuple <string, string> log) { lock (lockObj) { end++; killLogs.Add(log); called.Add(false); } KillLogMgr.Notify(); }
public void AddLog(string from, string to) { lock (lockObj) { end++; killLogs.Add(new Tuple <string, string>(from, to)); called.Add(false); } KillLogMgr.Notify(); }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody>(); gm = GameManager.instance; if (gm != null) { myContext = gm.MyContext; killLogMgr = gm.KillLogMgr; } healthText = transform.GetChild(1).GetChild(0).GetComponent <Text>(); }
public void IncrementStart() { lock (lockObj) { if (start < end) { start++; Debug.Log(start); KillLogMgr.Notify(); } } }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(this.gameObject); } _packetManager = GameObject.Find(ElementStrings.PACKETMANAGER).GetComponent <PacketManager>(); _packetManager.SetHandleMessage(PopMessage); killLogMgr = GetComponent <KillLogMgr>(); DontDestroyOnLoad(this.gameObject); }