コード例 #1
0
 public void CloseEditor()
 {
     trajectoryPanel.SetActive(false);
     trajectory       = false;
     dpmRobot.drawing = false;
     DPMDataHandler.WriteRobot();
     moveArrows.SetActive(false);
 }
コード例 #2
0
        public DriverPractice GetDriverPractice(Gamepiece g)
        {
            DriverPractice dp = new DriverPractice(g.name, "node_0.bxda", "node_0.bxda", UnityEngine.Vector3.zero, UnityEngine.Vector3.zero);

            if (DPMDataHandler.dpmodes.Where(d => d.gamepiece.Equals(g.name)).Count() > 0)
            {
                dp = DPMDataHandler.dpmodes.Where(d => d.gamepiece.Equals(g.name)).ToArray()[0];
            }
            else
            {
                DPMDataHandler.dpmodes.Add(dp);
                DPMDataHandler.WriteRobot();
                SetAllInteractors();
            }
            return(dp);
        }