Exemplo n.º 1
0
 public void Awake()
 {
     chainedPuzzleInstance = GetComponentInChildren <ChainedPuzzleInstance>();
     id    = chainedPuzzleInstance.GetInstanceID();
     sound = new CellSoundPlayer(new Vector3(transform.position.x, transform.position.y + 50, transform.position.z));
     //lightCollection = LG_LightCollection.Create(chainedPuzzleInstance.m_sourceArea.m_courseNode, new Vector3(0, 0, 0), LG_LightCollectionSorting.Distance, float.MaxValue);
     Patch_StateChange.OnInteract += onStateChange;
 }
Exemplo n.º 2
0
 public static void Postfix(pChainedPuzzleState newState, ChainedPuzzleInstance __instance)
 {
     OnInteract?.Invoke(newState, __instance.GetInstanceID());
 }