private void Awake()
    {
        _propBlock = new MaterialPropertyBlock();
        _renderer  = GetComponent <Renderer>();
        gM         = FindObjectOfType <GameManager>();

        pC         = FindObjectOfType <ParticleCollision>();
        randomizer = Random.Range(-3f, 3f);

        StartCoroutine(Hi(10f));
    }
Exemple #2
0
    private void Awake()
    {
        guideAudioS2     = GetComponent <AudioSource>();
        mm4Script        = GetComponent <MagicMoveV4>();
        capsIngestScript = leftController.GetComponent <CapsulatedIngestionV2>();
        pcolScript       = particleWeapon.GetComponent <ParticleCollision>();

        teleportScriptR = GetComponent <Teleportation>();
        teleportScriptL = leftController.GetComponent <Teleportation>();

        animEndGameNote = endGameNote.GetComponent <Animator>();
    }
Exemple #3
0
 public void GetBulletParticle()
 {
     pSystem          = weaponObjs[(int)currSelectedWeapon].transform.Find("Bullet_PS").GetComponent <ParticleSystem>();
     pSystemCollision = weaponObjs[(int)currSelectedWeapon].transform.Find("Bullet_PS").GetComponent <ParticleCollision>();
 }