Example #1
0
    // Start is called before the first frame update

    void Awake()
    {
        touchh = GameObject.Find("Touch").GetComponent <Touchh>();
        //gets the other public int,, gameobject + script wird auf diese script angeordnetet

        GhostPrice = PlayerPrefs.GetInt("GhostPrice", GhostPrice);
    }
    void MultiPriceResultCount()
    {
        touchh = GameObject.Find("Touch").GetComponent <Touchh>();

        counterX = touchh.x;
        //MultiPrice = Mathf.Pow(ScoreCheck);
        MultiPrice = counterX * 200;
    }
Example #3
0
    //void JumpBack()
    //{
    //    Vector3 newPosition = transform.position;
    //    newPosition.x -= 8;
    //    transform.position = newPosition;

    //}

    void GhostPriceResultCount()
    {
        touchh = GameObject.Find("Touch").GetComponent <Touchh>();

        counterY = touchh.y;

        GhostPrice = counterY * 200;
    }