Пример #1
0
 void Start()
 {
     rb2D = gameObject.GetComponent<Rigidbody2D>();
     anim = GetComponent<Animator>();
     sprRenderer = GetComponent<SpriteRenderer>();
     groundChecker = GetComponentInChildren<Transform>();
     anim.enabled = false;
     fakeItachi = FindObjectOfType<FakeI>();
 }
 void Start()
 {
     constantRotate = false;
     eventReset = false;
     eventIndex = 0;
     fakeItachi = FindObjectOfType<FakeI>();
     fakeCyborg = FindObjectOfType<FakeC>();
     fakeSonic = FindObjectOfType<FakeS>();
     animI = fakeItachi.GetComponent<Animator>();
     animC = fakeCyborg.GetComponent<Animator>();
     animS = fakeSonic.GetComponent<Animator>();
     mainCamera = FindObjectOfType<CameraController>();
 }
    void Start()
    {
        startingTextIndex -= 1;
        textIndex = startingTextIndex;
        MessageController.textSelection = textIndex;
        startEndingChatBoxDialogue = true;
        currChatBoxAvatar = GetComponent<Image>();

        fakeItachi = FindObjectOfType<FakeI>();
        fakeCyborg = FindObjectOfType<FakeC>();
        fakeSonic = FindObjectOfType<FakeS>();
        animI = fakeItachi.GetComponent<Animator>();
        animC = fakeCyborg.GetComponent<Animator>();
        animS = fakeSonic.GetComponent<Animator>();
    }
    void Start()
    {
        FindObjectOfType<MasterController>().moveSpeed = 0.0f;
        startingTextIndex -= 1;
        textIndex = startingTextIndex;
        MessageController.textSelection = textIndex;
        startChatBoxDialogue = true;
        currChatBoxAvatar = GetComponent<Image>();

        fakeItachi = FindObjectOfType<FakeI>();
        fakeCyborg = FindObjectOfType<FakeC>();
        fakeSonic = FindObjectOfType<FakeS>();
        animI = fakeItachi.GetComponent<Animator>();
        animC = fakeCyborg.GetComponent<Animator>();
        animS = fakeSonic.GetComponent<Animator>();
        L1EM = FindObjectOfType<Level1EventManager>();
    }
Пример #5
0
    void Start()
    {
        if(Application.loadedLevel == 7)
        {
            theCamera = GetComponent<Camera>();
            fakeItachi = FindObjectOfType<FakeI>();
            fakeCyborg = FindObjectOfType<FakeC>();
            fakeSonic = FindObjectOfType<FakeS>();
            level1PreStory = true;
            explosionFlash = false;
            explosionTimer = 5.537f;
            charToFollow = 1;
        }

        //Auto Hook
        player = FindObjectOfType<MasterController>();
        minBoundsStored = minBounds;
        maxBoundsStored = maxBounds;
    }