当前位置: 首页>>代码示例>>C#>>正文


C# dfControl.GetManager方法代码示例

本文整理汇总了C#中dfControl.GetManager方法的典型用法代码示例。如果您正苦于以下问题:C# dfControl.GetManager方法的具体用法?C# dfControl.GetManager怎么用?C# dfControl.GetManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在dfControl的用法示例。


在下文中一共展示了dfControl.GetManager方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnEnable

    void OnEnable()
    {
        if( mainCamera == null )
        {
            mainCamera = Camera.main;
            if( mainCamera == null )
            {
                Debug.LogError( "dfFollowObject component is unable to determine which camera is the MainCamera", gameObject );
                this.enabled = false;
                return;
            }
        }

        myControl = GetComponent<dfControl>();
        if( myControl == null )
        {
            Debug.LogError( "No dfControl component on this GameObject: " + gameObject.name, gameObject );
            this.enabled = false;
        }

        if( myControl == null || attach == null )
        {
            Debug.LogWarning( "Configuration incomplete: " + this.name );
            this.enabled = false;
            return;
        }

        controlTransform = myControl.transform;
        followTransform = attach.transform;

        // Obtain a reference to the dfGUIManager rendering the control
        manager = myControl.GetManager();

        dfFollowObjectSorter.Register( this );
    }
开发者ID:zc1415926,项目名称:Unity-SelectCharacter-Scene,代码行数:35,代码来源:dfFollowObject.cs

示例2: hideWindow

    IEnumerator hideWindow( dfControl window )
    {
        busy = true;
        isVisible = false;

        window.IsVisible = true;
        window.GetManager().BringToFront( window );

        var opacity = new dfAnimatedFloat( 1f, 0f, 0.33f );
        while( opacity > 0.05f )
        {
            window.Opacity = opacity;
            yield return null;
        }

        window.Opacity = 0f;

        busy = false;
    }
开发者ID:dashqasar,项目名称:GoogleMap,代码行数:19,代码来源:ShowSpellWindow.cs

示例3: showWindow

    IEnumerator showWindow( dfControl window )
    {
        isVisible = true;
        busy = true;

        window.IsVisible = true;
        window.GetManager().BringToFront( window );

        var opacity = new dfAnimatedFloat( 0f, 1f, 0.33f );
        while( opacity < 0.95f )
        {
            window.Opacity = opacity;
            yield return null;
        }

        window.Opacity = 1f;

        busy = false;
        isVisible = true;
    }
开发者ID:dashqasar,项目名称:GoogleMap,代码行数:20,代码来源:ShowSpellWindow.cs

示例4: Start

 public void Start()
 {
     this.control = GetComponent<dfControl>();
     this.manager = control.GetManager();
 }
开发者ID:dashqasar,项目名称:GoogleMap,代码行数:5,代码来源:TouchThrow.cs

示例5: Awake

		/// <summary>
		/// Initializes any variables or game state before the game starts.
		/// </summary>
		public void Awake ()
		{
				// Get joystick control
				DFControl = GetComponent<dfControl> ();
				// Get GUI manager
				DFGUIManager = DFControl.GetManager ();
				// Choose input handler
				#if UNITY_IPHONE || UNITY_ANDROID || UNITY_WP8 || UNITY_BLACKBERRY
				CurrentInputHandler = TouchInputHandler;
				#endif
				#if UNITY_EDITOR || UNITY_WEBPLAYER || UNITY_STANDALONE
				CurrentInputHandler = MouseInputHandler;
				#endif
				if (IsRemoteTesting) {
						CurrentInputHandler = TouchInputHandler;
				}
		}
开发者ID:gitbaby,项目名称:BetterJoystickForDFGUI,代码行数:20,代码来源:dfBetterJoystick.cs


注:本文中的dfControl.GetManager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。