Example #1
0
 public void RemoveAttractor(AttractorState state)
 {
     if ((attractorState & state) == state)
     {
         attractorState = attractorState & ~state;
     }
 }
Example #2
0
    public static bool widthBar;           //X軸幅変更用



    public void AddAttractor(AttractorState state)
    {
        if ((attractorState & state) != state)
        {
            attractorState |= state;
        }
    }
Example #3
0
    // Use this for initialization
    void Start()
    {
        Instance = this;
        weight   = new AttractorWeight(3.5f, 0, 0, 0, 0, 0, 0, 100, 0);

        systemState |= SystemState.LOAD;

        #region システム
        if ((systemState & SystemState.LOAD) == SystemState.LOAD)
        {
            //カメラ状態設定
            cameraState       |= CameraState.ORTHOGRAPHIC | CameraState.ZOOM_OUT;
            zoomEnabled        = false;
            interactiveEnabled = false;

            //初期設定読み込み
            LoadSettingFlies lsf = GetComponent <LoadSettingFlies>();
            lsf.Load();

            //Wall設定
            AutoDisplayAdjuster wall = GetComponent <AutoDisplayAdjuster>();
            wall.Load();

            //GUI処理
            GUIManager gui = GetComponent <GUIManager>();
            gui.Initialize();
        }
        #endregion

        #region ポインティング
        pointingState |= PointingState.POINTING;
        #endregion

        #region アトラクター
        attractorState = attractorState | AttractorState.AVOID | AttractorState.AVOID_SCALE | AttractorState.SCALE_UP | AttractorState.FRAME;
        if ((pointingState & PointingState.POINTING) == PointingState.POINTING)
        {
            attractorState |= AttractorState.SCALE_UP_MOUSE;
        }
        else if ((pointingState & PointingState.VENN) == PointingState.VENN)
        {
            //attractorState |= AttractorState.FRAME;
        }
        zAxisDirection = true;
        #endregion

        systemState  = ~SystemState.LOAD & systemState;
        systemState |= SystemState.MAIN;
    }