So im not seeing the problem here what should happen is the object players position should go up by 1 on the Y position or am i wrong?
using UnityEngine;
using System.Collections;
public class LadderControl : MonoBehaviour {
public GameObject Player;
void Start()
{
}
void OnTriggerEnter2D(Collider2D other){
if(Input.GetKeyDown(KeyCode.W))
{
Player.transform.position += new Vector3(0, 1, 0);
}
}
}
any help would be apprciated.