You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/muzzleController.cs

21 lines
569 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class muzzleController : MonoBehaviour
{
public List<GameObject> muzzleParticles = new List<GameObject>();
int index;
void Start()
{
index = PlayerPrefs.GetInt("selectedCharacterIndex");
Debug.Log("index is" + index);
//enablemuzzleParticles(index);
//enableimpactParticles(index);
//enablemuzzleParticles(index);
}
public void enablemuzzleParticles(int val)
{
muzzleParticles[val].SetActive(true);
}
}