void Awake () { TrapPrefab = Resources.Load(Sct_DEFCONST.FILE_PATH.GAME_PREFAB_FILE_PATH + Sct_DEFCONST.GAME_PREFAB_NAME.TRAP, typeof(GameObject)) as GameObject; sound = GetComponent<Sct_LavaSound>(); variable = GetComponent<Sct_LavaVariable>(); }
//private Sct_LavaSound sound; void Awake() { bodyControl = GetComponent<Sct_LavaBodyControl>(); col = GetComponent<Sct_CollisionDetect>(); mask = GetComponent<Sct_BubbleMask>(); input = GetComponent<Sct_LavaInput>(); variable = GetComponent<Sct_LavaVariable>(); //sound = GetComponent<Sct_LavaSound>(); }
void Awake() { state = GetComponent<Sct_LavaState>(); col = GetComponent<Sct_CollisionDetect>(); variable = GetComponent<Sct_LavaVariable>(); }
void Awake() { state = GetComponent<Sct_LavaState>(); sound = GetComponent<Sct_LavaSound>(); variable = GetComponent<Sct_LavaVariable>(); }