示例#1
0
 void Start()
 {
     myHingeJoint  = GetComponent <HingeJoint2D>();
     motor2D       = myHingeJoint.motor;
     signalHandler = GameObject
                     .FindGameObjectWithTag(Constants.SIGNAL_HANDLER_TAG)
                     .GetComponent <SignalHandlerScript>();
 }
示例#2
0
    void Start()
    {
        signalHandler = Finder.GetSignalHandler();

        game = Finder.GetGameController();
        game.LoadRanking(false);
        currentPosition = LLPosition.First;
    }
示例#3
0
 void Start()
 {
     Letters[letterSelect].text  = alphabet[stepper].ToString();
     Letters[letterSelect].color = AlfaColor;
     Input.ResetInputAxes();
     nextText      = GameObject.Find("Button");
     game          = Finder.GetGameController();
     signalHandler = Finder.GetSignalHandler();
 }
示例#4
0
    void Start()
    {
        signalHandler = Finder.GetSignalHandler();

        game = Finder.GetGameController();
        game.LoadRanking(false);
        currentPosition = LLPosition.First;
        if (audioSource == null)
        {
            audioSource = GetComponent <AudioSource>();
        }
    }
示例#5
0
    private void Start()
    {
        hinge = GetComponent <HingeJoint>();

        hinge.useSpring = true;

        signalHandler = GameObject
                        .FindGameObjectWithTag(Constants.SIGNAL_HANDLER_TAG)
                        .GetComponent <SignalHandlerScript>();

        audioSource = GetComponent <AudioSource>();
    }
    // Start is called before the first frame update
    void Start()
    {
        if (musicSource == null)
        {
            musicSource = GetComponent <AudioSource>();
        }
        signalHandler      = Finder.GetSignalHandler();
        musicSource.clip   = soundtrack[currentMusic];
        musicSource.volume = 0.5F;
        musicPassed        = false;
        elapsedTime        = 0F;

        musicSource.Play();
    }
示例#7
0
 private void Start()
 {
     signalHandler = Finder.GetSignalHandler();
     audioSource   = GetComponent <AudioSource>();
 }
示例#8
0
    void Start()
    {
        signalHandler = Finder.GetSignalHandler();

        LoadMenu();
    }