예제 #1
0
 public override void Read(BinaryReader stream)
 {
     AnimationID    = stream.ReadUInt16();
     SubAnimationId = stream.ReadUInt16();
     Length         = stream.ReadUInt32();
     MoveSpeed      = stream.ReadSingle();
     Flags          = stream.ReadUInt32();
     Probability    = stream.ReadInt16();
     Padding        = stream.ReadUInt16();
     Unknown        = stream.Read <uint>(Unknown.Length);
     BlendTime      = stream.ReadUInt32();
     BoundVolume    = stream.Read <SVolume>();
     NextAnimation  = stream.ReadInt16();
     AliasNext      = stream.ReadUInt16();
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        print("StartScreen: " + startScreen.transform.position.y);
        print("LaunchScreen: " + launchScreen.transform.position.y);
        Button btn1 = button1.GetComponent <Button>();
        Button btn2 = button2.GetComponent <Button>();
        Button btn3 = button3.GetComponent <Button>();

        btn1.onClick.AddListener(moveToSecond);
        btn2.onClick.AddListener(getOptions);
        btn3.onClick.AddListener(exitGame);

        Button l1 = launch1.GetComponent <Button>();
        Button l2 = launch2.GetComponent <Button>();
        Button l3 = launch3.GetComponent <Button>();
        Button l4 = launch4.GetComponent <Button>();

        l1.onClick.AddListener(load1);
        l2.onClick.AddListener(load2);
        l3.onClick.AddListener(load3);
        l4.onClick.AddListener(moveToFirst);

        Slider opt1 = MVolume.GetComponent <Slider>();
        Slider opt2 = SVolume.GetComponent <Slider>();
        Toggle opt3 = full.GetComponent <Toggle>();
        Button opt4 = optionsReturn.GetComponent <Button>();
        // Added
        Button creditsButton = credits.GetComponent <Button>();

        opt1.onValueChanged.AddListener(delegate { volumeCheck(); });
        opt2.onValueChanged.AddListener(delegate { volumeCheck(); });
        opt3.onValueChanged.AddListener(delegate { fullScreenCheck(opt3); });
        opt4.onClick.AddListener(moveToMenu);
        // Added
        creditsButton.onClick.AddListener(openCredits);

        movingUp        = false;
        movingDown      = false;
        movingToOptions = false;
        movingBack      = false;
    }