static void UpdateToolContext() { if (selectMode.IsPositionMode() && ToolManager.activeContextType != typeof(PositionToolContext)) { ToolManager.SetActiveContext <PositionToolContext>(); } else if (selectMode.IsTextureMode() && ToolManager.activeContextType != typeof(TextureToolContext)) { ToolManager.SetActiveContext <TextureToolContext>(); } else if (!selectMode.IsPositionMode()) { ToolManager.SetActiveContext <GameObjectToolContext>(); } }