コード例 #1
0
        private static bool Remove(this TimerComponent self, long id)
        {
            if (id == 0)
            {
                return(false);
            }

            TimerAction timerAction = self.GetChild <TimerAction>(id);

            if (timerAction == null)
            {
                return(false);
            }
            timerAction.Dispose();
            return(true);
        }
コード例 #2
0
ファイル: TimerComponent.cs プロジェクト: zwinter/ET
        private bool Remove(long id)
        {
            if (id == 0)
            {
                return(false);
            }

            TimerAction timerAction = this.GetChild <TimerAction>(id);

            if (timerAction == null)
            {
                return(false);
            }
            timerAction.Dispose();
            return(true);
        }