コード例 #1
0
        public override void Init()
        {
            _mainCamera = Camera.main;
            InteractionMgr.RegisterNewController(this);

            /*
             * InteractionMgr m = FindObjectOfType<InteractionMgr>();
             * if (m != null)
             * {
             *  m.RegisterNewController(this);
             * }
             * else
             * {
             *  Debug.Log("InteractionMgr not found to register controller with!");
             * }*/

            //crosshairs
            //CrosshairTexture = new Texture2D(32, 32);
            _lastWindowSize = new Vector2(Screen.width, Screen.height);
            CalculateRect();
        }
コード例 #2
0
 public override void Init()
 {
     InteractionMgr.RegisterNewController(this);
 }