Esempio n. 1
0
 public void AddCharactor(int charaID)
 {
     if (!FOWCharactorRevealer.Contains(charaID))
     {
         if (FOWCharactorRevealer.CheckIsValid(charaID))
         {
             FOWCharactorRevealer revealer = new FOWCharactorRevealer();
             revealer.InitInfo(charaID);
             FOWSystem.AddRevealer(revealer);
             m_revealers.Add(revealer);
         }
     }
 }
Esempio n. 2
0
        public void AddTempRevealer(Vector3 position, float radius, int leftMS)
        {
            if (leftMS <= 0)
            {
                return;
            }

            FOWTempRevealer tmpRevealer = new FOWTempRevealer();

            tmpRevealer.InitInfo(position, radius, leftMS);
            FOWSystem.AddRevealer(tmpRevealer);
            m_revealers.Add(tmpRevealer);
        }