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; }
// 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>(); }
private void Awake() { if (instance != null) { if (instance != this) { Destroy(this.gameObject); } } else { instance = this; } }
// 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; }
public void Start() { m_DialogueMgt = DialogueMgt.instance; }