Tanoda
DobotEditorManager.cs
Go to the documentation of this file.
1using System;
2using System.Collections;
3using System.Collections.Generic;
4using GILES;
5using UnityEngine;
6
7public class DobotEditorManager : MonoBehaviour
8{
10
11 public GameObject dobotRobot;
12
13 void Start()
14 {
15 instance = this;
17 try
18 {
19 dobotRobot?.transform.SetParent(pb_Scene.instance.transform);
20 dobotRobot?.SetActive(true);
21 }
22 catch (Exception)
23 {
24 // ignored
25 }
26 });
27 }
28
29 public void SelectRobot()
30 {
31 if (!dobotRobot)
32 {
33 dobotRobot = GameObject.Find("DobotRobot");
34 }
36 }
37 public GameObject GetRobot()
38 {
39 if (!dobotRobot)
40 {
41 dobotRobot = GameObject.Find("DobotRobot");
42 }
43 return dobotRobot;
44 }
45}
static DobotEditorManager instance
static void AddOnLevelClearedListener(Callback listener)
Definition: pb_Scene.cs:118
static void SetSelection(IEnumerable< GameObject > selection)
Definition: pb_Selection.cs:92