Exemplo n.º 1
0
 void deactivateAllPlacementTools()
 {
     GlobalReferences.ClearAffectedList();
     PlacementBehaviour.CarryGo[PlacementBehaviour.TempID].SetActive(false);
     PlacementBehaviour.ReleasePart();
     PlacementBehaviour.Aiming = false;
     PlacementBehaviour.DisableSphere.SetActive(false);
 }
Exemplo n.º 2
0
    //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");
    }
Exemplo n.º 3
0
 //MonoBehaviour methods
 #region
 void Start()
 {
     toolSet       = gameObject.GetComponentInChildren <ToolsetControls>();
     behaviourTool = gameObject.GetComponentInChildren <PlacementBehaviour>();
 }
Exemplo n.º 4
0
 void Awake()
 {
     Instance = this;
 }