Beispiel #1
0
    // 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);
    }
Beispiel #2
0
 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();
    }
Beispiel #4
0
    // 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>();
    }
Beispiel #5
0
 // Use this for initialization
 void Start()
 {
     this.gameManager = GameObject.FindWithTag("GameManager").GetComponent <DrawingScript>();
 }
Beispiel #6
0
 // Use this for initialization
 void Start()
 {
     this.gameManager = GameObject.FindWithTag("GameManager").GetComponent <DrawingScript>();
     transitionType   = tType.All;
 }