コード例 #1
0
        public static void Main()
        {
            TopSecret t = new TopSecret();

            t.SetSecret(1000);
            int s = t.GetSecret();

            Console.WriteLine("secret = {0}", s);
        }
コード例 #2
0
ファイル: God.cs プロジェクト: GoonHouse/LittleAwful2016
    // Use this for initialization
    void Start()
    {
        Application.runInBackground = true;

        holySignals     = new List <string>();
        haggleLogic     = GetComponent <HaggleLogic>();
        levelTransition = GetComponent <LevelTransiton>();
        playerStats     = GetComponent <PlayerStats>();
        topSecret       = GetComponent <TopSecret>();
        topSecret.messageRecievedEvent.AddListener(HandleHolySignal);
    }