Ejemplo n.º 1
0
    public void Start()
    {
        current = transform.position;
        moving  = false;
        startY  = transform.position.y;

        body = GetComponentInChildren <Rigidbody>();

        mesh = GameObject.Find("Player/Mesh");

        score = 0;
        gameStateController = GameObject.Find("GameStateController").GetComponent <GameStateControllerScript>();
    }
Ejemplo n.º 2
0
    public void Start()
    {
        current = transform.position;
        moving = false;
        startY = transform.position.y;

        body = GetComponentInChildren<Rigidbody>();

        mesh = GameObject.Find("Player/Mesh");

        score = 0;
        gameStateController = GameObject.Find("GameStateController").GetComponent<GameStateControllerScript>();
    }