Esempio n. 1
0
    private void Start()
    {
        ps        = GetComponent <ParticleSystem>();
        particles = new ParticleSystem.Particle[ps.main.maxParticles];

        if (GameMaster.gm.m_IntroSceneEnded)
        {
            Destroy(this);
        }

        m_SorcereRightHand = GameObject.FindGameObjectWithTag("SorcererRightHand");
        if (m_SorcereRightHand == null)
        {
            Destroy(this);
            return;
        }


        m_SausageCollider = m_SorcereRightHand.GetComponentInChildren <CapsuleCollider2D>();
        if (m_SausageCollider == null)
        {
            Destroy(this);
        }
        m_SausageBurn = m_SorcereRightHand.GetComponentInChildren <ParticleSystem>();
        m_SausageImg  = m_SorcereRightHand.GetComponentInChildren <SpriteRenderer>();
        m_DialogueMgt = DialogueMgt.instance;
    }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     m_DialogueManager = DialogueMgt.instance;
     m_AudioManager    = AudioManager.instance;
     m_CameraShake     = CameraShake.instance;
     m_CameraFollow    = Camera.main.GetComponentInParent <Camera2DFollow>();
 }
Esempio n. 3
0
 private void Awake()
 {
     if (instance != null)
     {
         if (instance != this)
         {
             Destroy(this.gameObject);
         }
     }
     else
     {
         instance = this;
     }
 }
Esempio n. 4
0
 // Start is called before the first frame update
 void Start()
 {
     m_AudioManager = AudioManager.instance;
     m_AudioManager.StopSoundSmooth(m_AudioManager.MainSound.name, 2f);
     m_DialogueMgt = DialogueMgt.instance;
 }
Esempio n. 5
0
 public void Start()
 {
     m_DialogueMgt = DialogueMgt.instance;
 }