コード例 #1
0
        // Use this for initialization
        protected override void Start()
        {
            base.Start();
            if (Camera2D == null)
            {
                Camera2D = GameObject.FindObjectOfType <Camera2DController>();
            }

            m_camera2DFollowBehaviour        = Camera2D.transform.GetComponent <FollowObjectBehaviour>();
            m_camera2DFollowBehaviour.Target = transform;
        }
コード例 #2
0
		// Use this for initialization
		protected override void Start () 
		{
            base.Start();
			if( Camera2D == null )
			{
				Camera2D = GameObject.FindObjectOfType<Camera2DController>();
			}
			
			m_camera2DFollowBehaviour = Camera2D.transform.GetComponent<FollowObjectBehaviour>();
			m_camera2DFollowBehaviour.Target = transform;
		}