private void SpawnFirstPullBlocks() { floorDisplayScript.ActivateLight("botRightButton"); GameObject go = Instantiate(stage2PullBlockPrefab, pullBlockSpawn1, new Quaternion(0, 0, 0, 0)); Vector3 falltoLocation = new Vector3(pullBlockSpawn1.x, pullBlockSpawn1.y - 6, pullBlockSpawn1.z); go.GetComponent <PullBlockScript>().FallFromCeiling(falltoLocation); botRightButton.ActivateButton(); }
public void UpdateGift() { if (DateTime.Now > timeGive + updateGiftTime) { gift.SetActive(true); isGet = false; } else { gift.SetActive(false); } if (!CommonVariables.GamePlaying) { buttonGift.ActivateButton(); } }