void deactivateAllPlacementTools() { GlobalReferences.ClearAffectedList(); PlacementBehaviour.CarryGo[PlacementBehaviour.TempID].SetActive(false); PlacementBehaviour.ReleasePart(); PlacementBehaviour.Aiming = false; PlacementBehaviour.DisableSphere.SetActive(false); }
//MonoBehaviour Methods #region void Start() { toolSet = gameObject.GetComponentInChildren <ToolsetControls>(); behaviourTool = gameObject.GetComponentInChildren <PlacementBehaviour>(); PlacementBehaviour.ViewDirection = new Vector3(0, 0, 1); PlacementBehaviour.PlayMode = PlacementBehaviour.Mode.FPS; crosshairImage = Resources.Load <Texture2D>("Materials/Toolset/crosshair"); }
//MonoBehaviour methods #region void Start() { toolSet = gameObject.GetComponentInChildren <ToolsetControls>(); behaviourTool = gameObject.GetComponentInChildren <PlacementBehaviour>(); }
void Awake() { Instance = this; }