コード例 #1
0
        public void ProcessObject(List <List <Object> > matrix)
        {
            MazeFinish f = new MazeFinish(16 * finish.Item1, finish.Item2);

            for (int i = 0; i < checkpoints.Count; i++)
            {
                MazeCheckpoint c = new MazeCheckpoint(16 * checkpoints[i].Item1, 16 * checkpoints[i].Item2, checkpoints[i].Item3);
                f.AddCheckpoint(c);
                matrix[checkpoints[i].Item1].Add(c);
            }
            matrix[finish.Item1].Add(f);
        }
コード例 #2
0
        private void CheckCheckpoints()
        {
            MazeFinish f      = (MazeFinish)subject;
            bool       goback = false;

            for (int i = 0; i < f.checkpoints.Count; i++)
            {
                if (!f.checkpoints[i].Collected)
                {
                    goback = true;
                }
            }
            if (goback)
            {
                subject.IsActive = false;
                HUD.level.camera.SetBack(16 * setback);
            }
        }