private void Start() { Debug.unityLogger.Log(TAG, "Start()"); mScene = GetComponentInParent <SubScene>(); if (mScene == null) { Debug.Log("Scene cannot be null"); return; } //mScene.SetLocalLevelBuilder(this); //ActionParams actionParams = new ActionParams(); //actionParams.Put("ref", this); mScene.GetEventManager().CallEvent(ApplicationConstants.BUILDER_IS_INITIALIZED, ActionParams.EmptyParams); mPlayer = mScene.GetPlayer(); mScene.GetServiceManager().RegisterService(ApplicationConstants.SERVICE_LOCAL_LEVEL_BUILDER, this); }
private void Start() { mScene = gameObject.GetComponentInParent(typeof(SubScene)) as SubScene; Player player = mScene.GetPlayer(); mScale = player.transform.localScale; }