void Start() { halfOfGameTime = GameController.gameTime / 2; lampScript = lamphead.GetComponent <LampScript>(); MonsterTools.PositionsInfoInitialization(positionsInfo); positionsInfo[0].position = new Vector3(34.61f, 8.2f, 6.52f); //Координаты позиции монстра positionsInfo[0].rotation = new Vector3(-1.948f, -454.796f, 75.576f); //Координаты поворота positionsInfo[0].animationName = handSqueezeAnim; //Номер анимации positionsInfo[0].soundNum = 2; //Номер звука positionsInfo[1].position = new Vector3(40.61019f, 5.491315f, 35.31374f); //Координаты позиции монстра positionsInfo[1].rotation = new Vector3(-0.8520001f, -408.212f, 1.3f); //Координаты поворота positionsInfo[1].animationName = handSqueezeAnim; //Номер анимации positionsInfo[1].soundNum = 1; //Номер звука positionsInfo[2].position = new Vector3(53.83f, 0.77f, 23.65f); //Координаты позиции монстра positionsInfo[2].rotation = new Vector3(-86.831f, -160.207f, -122.296f); //Координаты поворота positionsInfo[2].animationName = handFingerTappingAnim; //Номер анимации positionsInfo[2].soundNum = 0; //Номер звука positionsInfo[3].position = new Vector3(52.26f, 6.61f, -12.09f); //Координаты позиции монстра positionsInfo[3].rotation = new Vector3(-0.176f, -159.577f, 1.749f); //Координаты поворота positionsInfo[3].animationName = handWaweAnim; //Номер анимации positionsInfo[3].soundNum = 2; //Номер звука positionsInfo[4].position = new Vector3(49.45f, 9.99f, 23.53f); //Координаты позиции монстра positionsInfo[4].rotation = new Vector3(7.307f, -5.932f, -121.745f); //Координаты поворота positionsInfo[4].animationName = handWaweAnim; //Номер анимации positionsInfo[4].soundNum = 1; //Номер звука positionsInfo[5].position = new Vector3(41.509f, 14.904f, -4.886f); //Координаты позиции монстра positionsInfo[5].rotation = new Vector3(-88.205f, -17.542f, -75.982f); //Координаты поворота positionsInfo[5].animationName = handSqueezeAnim; //Номер анимации positionsInfo[5].soundNum = 3; //Номер звука positionsInfo[6].position = new Vector3(54.26f, 1.63f, 7.44f); //Координаты позиции монстра positionsInfo[6].rotation = new Vector3(-68.29401f, 99.40401f, -365.498f); //Координаты поворота positionsInfo[6].animationName = handSqueezeAnim; //Номер анимации positionsInfo[6].soundNum = 0; //Номер звука positionsInfo[7].position = new Vector3(65.16f, 2.12f, 14.54f); //Координаты позиции монстра positionsInfo[7].rotation = new Vector3(6.085001f, 9.009001f, -362.082f); //Координаты поворота positionsInfo[7].animationName = handSqueezeAnim; //Номер анимации positionsInfo[7].soundNum = 1; //Номер звука positionsInfo[8].position = new Vector3(65.58f, 3.71f, -6.12f); //Координаты позиции монстра positionsInfo[8].rotation = new Vector3(-0.757f, -183.728f, -358.18f); //Координаты поворота positionsInfo[8].animationName = handSqueezeAnim; //Номер анимации positionsInfo[8].soundNum = 3; //Номер звука positionsInfo[9].position = new Vector3(59.90168f, 5.213499f, 6.710208f); //Координаты позиции монстра positionsInfo[9].rotation = new Vector3(-26.455f, -89.54501f, -360.976f); //Координаты поворота positionsInfo[9].animationName = handScreamerAnim; //Номер анимации positionsInfo[9].soundNum = 4; //Номер звука monsterEmergenceCourutine = StartCoroutine(routine: MonsterEmergence(positionsInfo)); }
void Start() { halfOfGameTime = GameController.gameTime / 2; undercoverSounds = stickmanUndercoverSoundsObj.GetComponent <StickmanUndercoverSounds>(); lampScript = lamphead.GetComponent <LampScript>(); pauseButton = pauseButtonObject.GetComponent <PauseButton>(); MonsterTools.PositionsInfoInitialization(positionsInfo); //Инициализируем массив positionsInfo[0].position = new Vector3(16.34f, 14.02f, 1.6f); //Координаты позиции монстра positionsInfo[0].rotation = new Vector3(0f, -19.999f, 0f); //Координаты поворота positionsInfo[0].animationName = animationHeadRotateLeft; //Номер анимации positionsInfo[0].soundNum = 1; //Номер звука positionsInfo[1].position = new Vector3(47.29f, 14.1f, 34.66f); positionsInfo[1].rotation = new Vector3(0f, -89.62901f, 0f); positionsInfo[1].animationName = animationHeadRotateRight; positionsInfo[1].soundNum = 2; //Номер звука positionsInfo[2].position = new Vector3(47.36f, 14.1f, -16.96f); positionsInfo[2].rotation = new Vector3(0f, -89.62901f, 0f); positionsInfo[2].animationName = animationHeadRotateLeft; positionsInfo[2].soundNum = 1; //Номер звука positionsInfo[3].position = new Vector3(30.83f, 14.1f, 3.59f); positionsInfo[3].rotation = new Vector3(0f, 86.275f, 0f); positionsInfo[3].animationName = animationHeadRotateLeft; positionsInfo[3].soundNum = 0; //Номер звука positionsInfo[4].position = new Vector3(48.85727f, 14.1f, 27.96603f); positionsInfo[4].rotation = new Vector3(0f, 146.743f, 0f); positionsInfo[4].animationName = animationHeadRotateLeft; positionsInfo[4].soundNum = 2; //Номер звука positionsInfo[5].position = new Vector3(52.76725f, 16.76f, -17.41399f); positionsInfo[5].rotation = new Vector3(0f, 12.455f, 0f); positionsInfo[5].animationName = animationHeadRotateLeft; positionsInfo[5].soundNum = 1; //Номер звука positionsInfo[6].position = new Vector3(55.83f, 14.26f, 14.97f); positionsInfo[6].rotation = new Vector3(0f, 448.482f, 0f); positionsInfo[6].animationName = animationHeadRotateRight; positionsInfo[6].soundNum = 0; //Номер звука positionsInfo[7].position = new Vector3(43.96393f, 14.26f, 9.109217f); positionsInfo[7].rotation = new Vector3(0f, 326.453f, 0f); positionsInfo[7].animationName = animationEphilepsy; positionsInfo[7].soundNum = 3; //Номер звука positionsInfo[8].position = new Vector3(46.54034f, 13.57f, -1.232216f); positionsInfo[8].rotation = new Vector3(0f, 241.038f, 0f); positionsInfo[8].animationName = animationHeadRotateRight; positionsInfo[8].soundNum = 0; //Номер звука positionsInfo[9].position = new Vector3(60.59021f, 14.26f, 6.704445f); positionsInfo[9].rotation = new Vector3(0f, 361.793f, 0f); positionsInfo[9].animationName = animationScreamer; positionsInfo[9].soundNum = 4; //Номер звука monsterEmergenceCourutine = StartCoroutine(routine: MonsterEmergence(positionsInfo)); }
private bool forcedAppearHappened = false; //Было ли внезапное появление void Start() { halfOfGameTime = GameController.gameTime / 2; lampScript = lampHead.GetComponent <LampScript>(); MonsterTools.PositionsInfoInitialization(positionsInfo); //Инициализируем массив positionsInfo[0].position = new Vector3(10.26559f, 4.32f, -2.823093f); //Координаты позиции монстра positionsInfo[0].rotation = new Vector3(0f, -111.491f, 0f); //Координаты поворота positionsInfo[0].animationName = animationIdle; //Номер анимации positionsInfo[0].soundNum = 0; //Номер звука positionsInfo[1].position = new Vector3(5.964944f, 4.32f, 2.508347f); positionsInfo[1].rotation = new Vector3(0f, -111.491f, 0f); positionsInfo[1].animationName = animationIdle; positionsInfo[1].soundNum = 1; //Номер звука positionsInfo[2].position = new Vector3(47.45f, 4.5f, 34.65f); positionsInfo[2].rotation = new Vector3(0f, 0f, 0f); positionsInfo[2].animationName = animationIdle; positionsInfo[2].soundNum = 0; //Номер звука positionsInfo[3].position = new Vector3(28.90191f, 4.32f, 3.15575f); positionsInfo[3].rotation = new Vector3(0f, -0.826f, 0f); positionsInfo[3].animationName = animationHeadRotateRight; positionsInfo[3].soundNum = 1; //Номер звука positionsInfo[4].position = new Vector3(29.64321f, 4.319671f, 7.093417f); positionsInfo[4].rotation = new Vector3(0f, -156.403f, 0f); positionsInfo[4].animationName = animationHeadRotateLeft; positionsInfo[4].soundNum = 2; //Номер звука positionsInfo[5].position = new Vector3(32.75f, 4.32f, 5.14f); positionsInfo[5].rotation = new Vector3(0f, -86.22501f, 0f); positionsInfo[5].animationName = animationIdle; positionsInfo[5].soundNum = 0; //Номер звука positionsInfo[6].position = new Vector3(41.78289f, 4.44f, 15.21876f); positionsInfo[6].rotation = new Vector3(0f, -128.735f, 0f); positionsInfo[6].animationName = animationRotateArms; positionsInfo[6].soundNum = 1; //Номер звука positionsInfo[7].position = new Vector3(43.86f, 4.5f, -1.186751f); positionsInfo[7].rotation = new Vector3(0f, -72.928f, 0f); positionsInfo[7].animationName = animationHeadRotateRight; positionsInfo[7].soundNum = 2; //Номер звука positionsInfo[8].position = new Vector3(57.77f, 4.5f, 17.9f); positionsInfo[8].rotation = new Vector3(0f, -72.928f, 0f); positionsInfo[8].animationName = animationHeadRotateLeft; positionsInfo[8].soundNum = 1; //Номер звука positionsInfo[9].position = new Vector3(60.324f, 2.825f, 6.41f); positionsInfo[9].rotation = new Vector3(1.44f, -272.361f, -0.059f); positionsInfo[9].animationName = animationScreamer; positionsInfo[9].soundNum = 3; //Номер звука monsterEmergenceCourutine = StartCoroutine(routine: MonsterEmergence(positionsInfo)); }