/// <summary> /// ガチャをするときのレスポンス処理 /// </summary> /// <param name="response"></param> public void ResponseGacha(ResponseGacha response) { foreach (EmmisionCharacter character in response.emmisionCharacterList) { GachaRateInstance.Instance.GachaRate(character.rate, character.dictionary_number, character.duplication); } Canvas canvas = CanvasManager.Canvas.GetComponent <Canvas>(); canvas.renderMode = RenderMode.ScreenSpaceCamera; GetEffectManager manager = new GetEffectManager(); }
void Ini() { backGroundObj = GameObject.Find(BACK_GROUND_NAME).GetComponent <SpriteRenderer>(); getEffectCanvas = GameObject.Find(EFFECT_CANVAS_NAME).GetComponent <Canvas>(); character = GameObject.Find(CHARACTER_IMAGE).GetComponent <Image>(); characterName = GameObject.Find(CHARACTER_TEXT_NAME).GetComponent <Text>(); source = getEffectCanvas.GetComponent <AudioSource>(); getImage = GameObject.Find(GET_IMAGE_NAME).GetComponent <Image>(); GameObject mark = GameObject.Find(MARK_NAME); tipeMarkObj = mark.transform.position; instance = this; getEffectCanvas.gameObject.SetActive(false); }