This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.8.0; | |
contract Leaderboard { | |
// person who deploys contract is the owner | |
address owner; | |
// lists top 100 users | |
uint leaderboardLength = 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.0; | |
contract PiggyBank { | |
address payable hodlerAddress; | |
uint balance = 0; | |
uint deadline; | |
uint minValue = 1; | |
function enrollBank() public { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ChannelTriggerOpt : MonoBehaviour | |
{ | |
[SerializeField] | |
private string channelName; | |
[SerializeField] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using agora_gaming_rtc; | |
using UnityEngine.UI; | |
using System.Globalization; | |
using System.Runtime.InteropServices; | |
using System; | |
using OculusSampleFramework; | |
using UnityEditor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.UI; | |
using UnityEngine; | |
#if(UNITY_2018_3_OR_NEWER) | |
using UnityEngine.Android; | |
#endif | |
using agora_gaming_rtc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.VR; | |
public class VRinactive : MonoBehavior { | |
public void Start() | |
{ | |
StartCouroutine(DeactivateVR("none")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.VR; | |
public class VRactive : MonoBehavior { | |
public void Start() | |
{ | |
StartCouroutine(ActivateVR("carboard")); |