• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# CameraManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中CameraManager的典型用法代码示例。如果您正苦于以下问题:C# CameraManager类的具体用法?C# CameraManager怎么用?C# CameraManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CameraManager类属于命名空间,在下文中一共展示了CameraManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: WaitingState

 public WaitingState(StateMachine sm, CameraManager cam, Game game, float time, Team TeamOnSuper)
     : base(sm, cam, game)
 {
     this.remainingTime = time;
     this.TeamOnSuper = TeamOnSuper;
     this.onWiningPoints = false;
 }
开发者ID:sylafrs,项目名称:rugby,代码行数:7,代码来源:WaitingState.cs


示例2: gvwCamera_RowDeleting

 protected void gvwCamera_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     string id = gvwCamera.DataKeys[e.RowIndex].Value.ToString();
     CameraManager cm = new CameraManager();
     cm.DeleteCamera(id, Session["userid"].ToString());
     Query();
 }
开发者ID:qqeip,项目名称:projectofmytest,代码行数:7,代码来源:InquiryCamera.aspx.cs


示例3: Awake

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    void Awake()
    {
        cameraManager = GameObject.Find("_CameraTarget").GetComponent<CameraManager>();

        m_groc.gameObject.SetActive(false);
        m_verd.gameObject.SetActive(false);
    }
开发者ID:jsr2k1,项目名称:gato-book-test,代码行数:8,代码来源:Semaforo.cs


示例4: Start

 private void Start()
 {
     if (!string.IsNullOrEmpty(this.PoseStd) && base.gameObject.animation)
     {
         base.gameObject.animation.CrossFade(this.PoseStd);
     }
     this.cameraMgr = Tools.GetSafeComponent<CameraManager>(base.gameObject);
     this.navAgent = Tools.GetSafeComponent<NavMeshAgent>(base.gameObject);
     this.navAgent.radius = 0.2f;
     this.navAgent.speed = 2.8f;
     this.navAgent.acceleration = 40960f;
     this.navAgent.autoRepath = false;
     this.navAgent.obstacleAvoidanceType = ObstacleAvoidanceType.NoObstacleAvoidance;
     this.navAgent.updateRotation = false;
     GameObject gameObject = Res.Load<GameObject>("Skill/st_002", false);
     if (gameObject != null)
     {
         this.attackArea = (UnityEngine.Object.Instantiate(gameObject) as GameObject);
         if (this.attackArea != null)
         {
             this.attackArea.transform.parent = base.transform;
             this.attackArea.transform.localPosition = Vector3.zero;
             this.attackArea.transform.localRotation = Quaternion.identity;
             this.attackArea.transform.localScale = Vector3.one;
             this.attackArea.layer = base.gameObject.layer;
         }
     }
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:28,代码来源:PlayerTest.cs


示例5: Awake

 // Use this for references
 void Awake() {
     cameraManager = GameObject.FindGameObjectWithTag("CameraManager").GetComponent<CameraManager>();
     rigBody = GetComponent<Rigidbody>();
     Collider[] colliders = GetComponents<Collider>();
     standingColl = colliders[0];
     crouchingColl = colliders[1];
 }
开发者ID:ForsakenGS,项目名称:LostKids,代码行数:8,代码来源:CharacterMovement.cs


示例6: OnCameraChange

 private void OnCameraChange(CameraManager.CameraMode cameraMode)
 {
     if (cameraMode == CameraManager.CameraMode.IVA) {
         isActive = true;
         activatedAt = DateTime.Now;
     } else
         isActive = false;
 }
开发者ID:Real-Gecko,项目名称:KSP-WhoAmI,代码行数:8,代码来源:WhoAmI.cs


示例7: StartStep

 public override void StartStep()
 {
     FindObjectOfType<GameUIManager>().gameObject.SetActive(false);
     mainCamera = Camera.main;
     cameraManager = mainCamera.gameObject.GetComponent<CameraManager>();
     cameraManager.enabled = false;
     mainCamera.DOShakePosition(duration, strenght, vibrato).OnComplete(OnShakeComplete);
 }
开发者ID:juliancruz87,项目名称:madbricks,代码行数:8,代码来源:ShakeCameraStep.cs


示例8: StartStep

 public override void StartStep()
 {
     mainCamera = Camera.main;
     cameraManager = mainCamera.gameObject.GetComponent<CameraManager>();
     cameraManager.enabled = false;
     mainCamera.gameObject.transform.DOMoveY(toMove, duration).SetEase(ease);
     EndStep();
 }
开发者ID:juliancruz87,项目名称:madbricks,代码行数:8,代码来源:MoveCameraStep.cs


示例9: Awake

	private void Awake()
	{
		camManager = Camera.mainCamera.GetComponent<CameraManager>();
		cController = GetComponent<CharacterController>();
		animator = GetComponent<Animator>();

		camManager.player = this;
	}
开发者ID:KieranChandler,项目名称:BritishPoliceSimulator,代码行数:8,代码来源:Player.cs


示例10: StartScene

	public override void StartScene (System.Action endCallback, CameraManager cameraManager)
	{
		base.StartScene (endCallback, cameraManager);
		Character character = Menu.Instance.GetCharacterByType(CharacterType.Ataraxia);
		character.PositionTo (initPositionCharacter.position);
		Invoke (Helpers.NameOf(StartDialog),timeToStartMessage);

	}
开发者ID:juliancruz87,项目名称:Ataraxia,代码行数:8,代码来源:TakeWelcomeStep.cs


示例11: Awake

	protected virtual void Awake()
	{
		playerManager = GameObject.FindWithTag("Player").GetComponent<PlayerManager>();
		cam = GameObject.Find("Camera");
		cameraManager = GameObject.Find("Camera").GetComponent<CameraManager>();
		playerCanvasManager = GameObject.Find("PlayerCanvas").GetComponent<PlayerCanvasManager>();
		StartCoroutine(StartMovie());
	}
开发者ID:HailMoisten,项目名称:Scripts,代码行数:8,代码来源:AMovieManager.cs


示例12: Awake

    void Awake()
    {
        playerCamera = GameObject.Find("Player Camera").GetComponent<Camera>();
        minimapCamera = GameObject.Find("Minimap Camera").GetComponent<Camera>();
        currPlayer = playerCamera.transform.parent.gameObject.GetComponent<Player>();
        world = GameObject.Find("World");

        cameraMgr = GameObject.FindObjectOfType<CameraManager>();
    }
开发者ID:penspanic,项目名称:TinyLand,代码行数:9,代码来源:PlayerManager.cs


示例13: ConnectionManager

 public ConnectionManager(WebcamServer s)
 {
     server = s;
     camManager = new CameraManager();
     clients = new List<string>();
     udpSender = new UdpClient();
     udpListener = new UdpClient(1112);
     udpListener.BeginReceive(new AsyncCallback(OnReceive), udpListener);
 }
开发者ID:eaglezhao,项目名称:tracnghiemweb,代码行数:9,代码来源:ConnectionManager.cs


示例14: Awake

    // Use this for initialization
    void Awake()
    {
        cm = GetComponentInParent<CameraManager>();

        if (activator1 != null)
        {
            //store activator gameObject in a temporary variable for when null we can retrieve later
            GameObject temp = activator1;
            //  Checks for a trigger collider; If the game object in the activator slot
            // is not trigger, but has a child that is a trigger, the child becomes the activator
            if (activator1.transform.childCount > 0)
            {
                Collider[] _activator1 = activator1.gameObject.GetComponentsInChildren<Collider>();
                activator1 = null;

                foreach (Collider c in _activator1)
                {
                    if (c.isTrigger == true)
                        activator1 = c.gameObject;
                }

                if (activator1 == null)
                    activator1 = temp;

            }
        }
        //do the same thing if a second activator exists
        if (activator2 != null)
        {
            GameObject temp = activator2;
            if (activator2.transform.childCount > 0)
            {
                Collider[] _activator2 = activator2.gameObject.GetComponentsInChildren<Collider>();
                activator2 = null;

                foreach (Collider c in _activator2)
                {
                    if (c.isTrigger == true)
                        activator2 = c.gameObject;
                }

                if (activator2 == null)
                    activator2 = temp;

            }
        }

        //listening for "checkpoint" to swap cameras
        Messenger.AddListener<GameObject,Transform>(listeningForSetCam, SetCam);
        //listening for "playerdied" to switch the follow targets to the alive player
        Messenger.AddListener<string>(listeningForReTarget, SetTarget);
        Messenger.MarkAsPermanent(listeningForSetCam);
        Messenger.MarkAsPermanent(listeningForReTarget);
        if (!startCam)
            gameObject.SetActive(false);
    }
开发者ID:QuintonBaudoin,项目名称:PAX,代码行数:57,代码来源:CameraListener.cs


示例15: Start

    void Start()
    {
		turnsCompleted = 0;
        gameManager = this;
        currentPlayers = new LinkedList<Entity>();
        currentTurn = JANITOR;
        cameraManager = GetComponent<CameraManager>();
        uiManager = GameObject.FindObjectOfType<UIManager>();
        turnsLeft = turnsPerPlayer;
    }
开发者ID:ablbebxb,项目名称:demonGymnasium,代码行数:10,代码来源:GameManager.cs


示例16: StartScene

	public virtual void StartScene (Action endCallback, CameraManager cameraManager)
	{
		isOver = false;
		End = endCallback;
		this.cameraManager = cameraManager;
		if(camera != null)
			this.cameraManager.SetCamera3D(camera);
		else
			this.cameraManager.SetDefault ();
	}
开发者ID:juliancruz87,项目名称:Ataraxia,代码行数:10,代码来源:TakeScene.cs


示例17: GetCameraManager

 public static CameraManager GetCameraManager()
 {
     if(cameraManager == null)
     {
         cameraManager = cameraManagerGameObject.AddComponent<CameraManager>();
     }
     else
         return null;
     return cameraManager;
 }
开发者ID:ChangYinShung,项目名称:ProjectKI,代码行数:10,代码来源:ManagerSinglton.cs


示例18: Awake

    // Use this for initialization
    void Awake()
    {
        cm = GetComponentInParent<CameraManager>();

        Messenger.AddListener<string,string>(listeningForSetCam, SetCam);
        Messenger.AddListener<string>(listeningForReTarget, SetTarget);
        Messenger.MarkAsPermanent(listeningForSetCam);
        Messenger.MarkAsPermanent(listeningForReTarget);
        if (!startCam)
            gameObject.SetActive(false);
    }
开发者ID:ProfAF,项目名称:PAX,代码行数:12,代码来源:CameraListener.cs


示例19: YnState3D

        /// <summary>
        /// Create a state with a 3D scene and a camera.
        /// </summary>
        /// <param name="camera">Camera to use on this scene.</param>
        public YnState3D(BaseCamera camera)
            : base()
        {
            if (camera != null)
                _cameraManager = new CameraManager(camera);
            else
                _cameraManager = new CameraManager();

            _scene = new YnScene3D();
            _basicObjects = new YnBasicCollection();
        }
开发者ID:shaoleibo,项目名称:YnaEngine,代码行数:15,代码来源:YnState3D.cs


示例20: Awake

    void Awake()
    {
        if (cameraManager == null)
            cameraManager = GetComponent<CameraManager>();

        backKiller = transform.Find ("BackKiller");
        fallingKiller = transform.Find ("FallingKiller");

        backKillerCollider = backKiller.GetComponent<Collider2D>();
        fallingKillerCollider = fallingKiller.GetComponent<Collider2D>();
    }
开发者ID:lpointet,项目名称:runblobby,代码行数:11,代码来源:CameraManager.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# CameraMode类代码示例发布时间:2022-05-24
下一篇:
C# CameraController类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap