// Use this for initialization void Start() { observeProp = Observe.GetComponent <observeRange>(); playerCont = playerCharacter.GetComponent <playerScript>(); EnvManager = playerCont.GetEnvManager(); playerSpeed = playerCharacter.GetComponent <playerScript>().currentSpeed; bulletClones = new List <GameObject>(); simPos = new List <Vector3>(); bulletClonesPos = new List <Vector3>(); enemiesClone = new List <GameObject>(); enemiesClonePos = new List <Vector3>(); moveScore = new float[9]; boundsOffset = new Vector3(0.5f, 0.5f, 0f); mx_bound = EnvManager.GetComponent <Collider>().bounds.max - boundsOffset; mn_bound = EnvManager.GetComponent <Collider>().bounds.min + boundsOffset; // if (idleDelayFrame > delayFrame) delayFrame = idleDelayFrame; MOVE[0] = new Vector3(0, 0, 0); // MOVE[1] = new Vector3(playerSpeed*Time.fixedDeltaTime, 0, 0); // MOVE[2] = new Vector3(-playerSpeed*Time.fixedDeltaTime, 0, 0); // MOVE[3] = new Vector3(0, playerSpeed*Time.fixedDeltaTime, 0); // MOVE[4] = new Vector3(0, -playerSpeed*Time.fixedDeltaTime, 0); // Debug.Log(playerSpeed); }