// Use this for initialization void Start() { this.gameManager = GameObject.FindWithTag("GameManager").GetComponent <DrawingScript>(); Color tempcolor = this.transform.GetChild(0).GetComponent <SpriteRenderer>().color; this.transform.GetChild(0).GetComponent <SpriteRenderer>().color = new Vector4(tempcolor[0], tempcolor[1], tempcolor[2], 1.0f); }
public static void Clear() { WaitingToLaunch = 0; MainScript = null; InventoryScript = null; CharacterMovementScript = null; MiningScript = null; DrawingScript = null; MapReadService = null; InventoryPanel = null; SoundScript = null; }
// Use this for initialization void Start() { ChangeState(new FirstClickState()); drawingScript = new DrawingScript(); clock = new ClockScript(); DrawSticks(new Color32(150, 60, 25, 255)); DrawBlocks(); DrawButtons(); AddButtonAction(); DrawClockText(); clock.StartClock(); }
// Start is called before the first frame update void Start() { if (instance == null) { instance = this; } else { Destroy(gameObject); } gameState = GameStates.ID; if (PlayerPrefs.HasKey("Wait Time")) { waitTime = PlayerPrefs.GetFloat("Wait Time"); waitTimeField.text = waitTime.ToString(); } if (PlayerPrefs.HasKey("Main Time")) { mainTime = PlayerPrefs.GetFloat("Main Time"); mainDurationField.text = mainTime.ToString(); } if (PlayerPrefs.HasKey("Correction Time")) { correctionTime = PlayerPrefs.GetFloat("Correction Time"); correctionDurationField.text = correctionTime.ToString(); } width = 3840; height = 2160; lineCount = 0; labeledLineCount = 0; xMax = surfaceTracker.position.x; yMax = surfaceTracker.position.y; drawingScript = drawingHandler.GetComponent <DrawingScript>(); bellSpriteScript = bellTestSprite.GetComponent <BellSpriteScript>(); }
// Use this for initialization void Start() { this.gameManager = GameObject.FindWithTag("GameManager").GetComponent <DrawingScript>(); }
// Use this for initialization void Start() { this.gameManager = GameObject.FindWithTag("GameManager").GetComponent <DrawingScript>(); transitionType = tType.All; }