コード例 #1
0
 private void Awake()
 {
     soundManager     = FindObjectOfType <SoundManager>();
     notificationText = Resources.FindObjectsOfTypeAll <AreaNotificationText>()[0];
     healthbars       = Resources.FindObjectsOfTypeAll <EnemyBossHealthbar>();
     platforms        = FindObjectOfType <BossArenaPlatforms>();
 }
コード例 #2
0
 void Awake()
 {
     areaNotificationText = FindObjectOfType <AreaNotificationText>();
     cameraController     = FindObjectOfType <CameraController>();
     player      = FindObjectOfType <Player>();
     screenCover = FindObjectOfType <ScreenCover>();
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: cliftech/RageSparklerGame
    void Awake()
    {
        areaNotText                  = FindObjectOfType <AreaNotificationText>();
        cameraController             = FindObjectOfType <CameraController>();
        plrInter                     = FindObjectOfType <PlayerInteract>();
        gamemanager                  = FindObjectOfType <GameManager>();
        soundController              = GetComponentInChildren <PlayerSoundController>();
        playerDashParticleController = GetComponentInChildren <PlayerDashParticleController>();
        playerMovement               = GetComponent <PlayerMovement>();
        AmuletFlash                  = FindObjectOfType <TheFirstFlash>();
        statusGUI                    = FindObjectOfType <StatusGUI>();
        footPrintParticles           = transform.Find("FootprintParticles").GetComponent <ParticleSystem>();
        landParticles                = transform.Find("LandParticles").GetComponent <ParticleSystem>();
        jumpParticles                = transform.Find("JumpParticles").GetComponent <ParticleSystem>();
        wallJumpParticles_left       = transform.Find("WallJumpParticlesLeft").GetComponent <ParticleSystem>();
        wallJumpParticles_right      = transform.Find("WallJumpParticlesRight").GetComponent <ParticleSystem>();
        enemyKillCount               = new Dictionary <string, int>();

        Inventory[] equipments = GetComponents <Inventory>();
        for (int i = 0; i < equipments.Length; i++)
        {
            if (equipments[i].inventoryUI.name == "EquipmentUI")
            {
                equipment = equipments[i];
            }
            else
            {
                hubChest = equipments[i];
            }
        }
        craftWindow.equipment = equipment;
        craftWindow.hubChest  = hubChest;
    }
コード例 #4
0
 void Awake()
 {
     bossHealthbars       = Resources.FindObjectsOfTypeAll <EnemyBossHealthbar>();
     essenceCollectorGUI  = FindObjectOfType <EssenceCollectorGUI>();
     areaNotificationText = Resources.FindObjectsOfTypeAll <AreaNotificationText>()[0];
     cameraController     = FindObjectOfType <CameraController>();
     player       = FindObjectOfType <Player>();
     screenCover  = FindObjectOfType <ScreenCover>();
     soundManager = FindObjectOfType <SoundManager>();
     hubManager   = hubArea.GetComponent <HubManager>();
 }
コード例 #5
0
 void Awake()
 {
     sound              = GetComponent <AI_Soundmanager>();
     soundManager       = GameObject.FindObjectOfType <SoundManager>();
     notificationText   = GameObject.FindObjectOfType <AreaNotificationText>();
     bossHealthbar      = Resources.FindObjectsOfTypeAll <EnemyBossHealthbar>()[0];
     bossArena          = FindObjectOfType <BossArena>();
     footPrintParticles = transform.Find("FootprintParticles").GetComponent <ParticleSystem>();
     attackParticles    = transform.Find("AttackParticles").GetComponent <ParticleSystem>();
     Initialize();
 }