// Use this for initialization void Start() { isGrounded = false; justLanded = true; gravityOn = true; firstUpdate = false; gunOffset = new Vector3(0.0f, 0.75f, 0.50f); //.02 xSpeed = 5; xMove = 0.0f; jumpHeight = STARTINGJUMPHEIGHT; jumpIncrease = MAXJUMPINC; jumpFloatTime = MAXJUMPFLOATTIME; jumpTime = MAXJUMPTIME; firstUpdateCounter = 0; input = GetComponent <PlayerInput>(); powers = GetComponent <PlayerPowers>(); wallJumping = GetComponent <WallJumping>(); _HUD = GetComponent <PlayerHUD>(); anim = GetComponent <AnimatorScript>(); globals = GameObject.Find("_Globals").GetComponent <GlobalsScript>(); globalMusic = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>(); changeMusic = GameObject.Find("GlobalMusicChanger").GetComponent <ChangeVolumeGlitchMusic>(); rb = GetComponent <Rigidbody>(); rb.angularVelocity = Vector3.zero; rb.freezeRotation = true; }
// Use this for initialization void Start() { isWallJumpCounter = 0.0f; onWall = false; wallIsRight = false; isJumped = false; lastWallJump = ""; input = GetComponent <PlayerInput>(); globals = GameObject.Find("_Globals").GetComponent <GlobalsScript>(); }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody>(); globals = GameObject.Find("_Globals").GetComponent <GlobalsScript>(); music = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>(); if (respawn && globals.lastCheckpointPos == respawnLoc) { Destroy(enemy); } jumpCounter = 0; isRight = true; }
public DataItem PerformOperations(DataItem data) { foreach (var file in Directory.EnumerateFiles($"{Location}{Path.DirectorySeparatorChar}")) { GlobalsScript item = new GlobalsScript { Data = data }; var script = CSharpScript.EvaluateAsync <DataItem>( System.IO.File.ReadAllText(file), Microsoft.CodeAnalysis.Scripting.ScriptOptions.Default .WithReferences(typeof(ParsingServices.Models.DataItem).Assembly) .WithImports("System.Collections.Generic") .WithImports("System.Linq"), globalsType: item.GetType(), globals: item); script.Wait(); data = script.Result; } return(data); }
// Use this for initialization void Start() { canMove = true; phase = false; glide = false; jump = false; isWallJump = false; debugOptions = true; startingKanimiCode = false; differentShootingButton = false; firstClingUpdate = 0; canMoveCounter = 0.0f; stopRumble(); physics = GetComponent <PlayerPhysics>(); powers = GetComponent <PlayerPowers>(); wallJumping = GetComponent <WallJumping>(); anim = GetComponent <AnimatorScript>(); globals = GameObject.Find("_Globals").GetComponent <GlobalsScript>(); globalMusic = GameObject.Find("GlobalSoundEffects").GetComponent <GlobalMusicScript>(); globals.playerInputEnabled = true; }
void Start() { audio = GetComponent <AudioSource>(); globals = GameObject.Find("_Globals").GetComponent <GlobalsScript>(); }