コード例 #1
0
        // Use this for initialization
        void Start()
        {
//            var gameLogicObject = GameObject.FindWithTag(TheBallGameLogic.GameLogicTag);
//            if (gameLogicObject == null) return;
            _theBallGameLogic = FindObjectOfType <TheBallGameLogic>();
            Debug.Log(string.Format("TheBallGameLogic status {0}", _theBallGameLogic != null));
        }
コード例 #2
0
        // Use this for initialization
        void Start()
        {
            var gameLogicObject = GameObject.FindWithTag(TheBallGameLogic.GameLogicTag);

            if (gameLogicObject == null)
            {
                return;
            }
            _theBallGameLogic = gameLogicObject.GetComponent <TheBallGameLogic>();
        }