// 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)); }
// Use this for initialization void Start() { var gameLogicObject = GameObject.FindWithTag(TheBallGameLogic.GameLogicTag); if (gameLogicObject == null) { return; } _theBallGameLogic = gameLogicObject.GetComponent <TheBallGameLogic>(); }