//Tool LastTool = Tool.None; void OnEnable() { myTarget = (InputDeviceController)target; //LastTool = Tools.current; //Tools.current = Tool.None; }
void Awake() { if (control == null) { DontDestroyOnLoad(gameObject); control = this; } else if (control != this) { Destroy(gameObject); } }
private void Awake() { i = this; }