Example #1
0
    // Use this for initialization
    private void Start()
    {
        portals     = Resources.LoadAll <Sprite>("Sprites/portals");
        anim        = GetComponent <Animator>();
        batPool     = PoolObjectManager.Instance.GetPool("BatPool");
        skullPool   = PoolObjectManager.Instance.GetPool("SkullPool");
        demonPool   = PoolObjectManager.Instance.GetPool("DemonPool");
        audioSource = GetComponent <AudioSource>();
        chargeTimer = baby.GetComponentInChildren <Progress>();

        PlaySound();
    }