コード例 #1
0
ファイル: ExaminerAction.cs プロジェクト: minkooz/FungusCave
        private void MoveExaminer()
        {
            int[] target = coord.Convert(
                GetComponent <PlayerInput>().GameCommand(),
                FindObjects.GetStaticActor(SubObjectTag.Examiner)
                .transform.position);

            GetComponent <IMove>().MoveGameObject(target);
        }
コード例 #2
0
        private void PrintPool()
        {
            string label = GetComponent <GameText>().GetStringData(node,
                                                                   "Pool");

            if (board.CheckBlock(SubObjectTag.Pool,
                                 FindObjects.GetStaticActor(SubObjectTag.Examiner)
                                 .transform.position))
            {
                getUI(UITag.ExaminePoolLabel).text = label;
            }
            else
            {
                getUI(UITag.ExaminePoolLabel).text = "";
            }
        }