public void Init(GameObject spaceShip, GameObject uiCamera, GachaType type, GachaMainPageContext.GachaAmountType amountType, Action endCallBack = null) { this._spaceShip = spaceShip; this._uiCamera = uiCamera; this._type = type; this._endCallBack = endCallBack; this._amountType = amountType; this._mainMenuStage = (spaceShip != null) ? spaceShip.GetComponent <MainMenuStage>() : null; }
public void Start(GachaType gacha, GachaMainPageContext.GachaAmountType amount, Action <GachaType, GachaMainPageContext.GachaAmountType> callback) { if (!this._waiting) { this._waiting = true; this._gachaType = gacha; this._amountType = amount; this._callback = callback; this.ShowWheel(); } }