private void ChangeState(MEMORY_STATE next) { if (next == MEMORY_STATE.WAIT) { Debug.Log("ここにきちゃだめー!(幼女)"); } else if (next == MEMORY_STATE.SPIN) { memoryState = MEMORY_STATE.SPIN; emitter.SetActive(true); Singleton <SoundManager> .Instance.PlaySeByName("get"); isGoal = true; memory.transform.Rotate(0.0f, 0.0f, 0.0f); startPoint = mainCamera.WorldToViewportPoint(memory.transform.position); endPoint = Singleton <ClearCount> .Instance.GetActiveIconPosition(); particle.GetComponent <ParticleSystem>().Play(); } else if (next == MEMORY_STATE.END) { memoryState = MEMORY_STATE.END; GoalFnac(); } }
private void Start() { emitter = transform.GetChild(1).gameObject; emitter.SetActive(false); memory = transform.Find("memor_kai2").gameObject; particle = transform.Find("GoalParticle").gameObject; goalChild1 = transform.Find("Col1").GetComponent <GoalChild>(); goalChild2 = transform.Find("Col2").GetComponent <GoalChild>(); memoryState = MEMORY_STATE.WAIT; spinTimer = new GameTimer(timer); mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); //endPoint = new Vector3(0.0f, 1.0f, 5.0f); }
public static extern bool VirtualFreeEx(int Process, int Address, int Size, MEMORY_STATE FreeType);
public static extern int VirtualAllocEx(int Process, int Address, int Size, MEMORY_STATE Type, MEMORY_PROTECTION Protect);