void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag(compareTag)) { STAIR_GlobalValues.setGlobals(index, value); } }
// Use this for initialization void Start() { if (STAIR_GlobalValues.getGlobals(chipValue) == 1) { Destroy(this.gameObject); } anim = GetComponent <Animator> (); player = GameObject.FindGameObjectWithTag("Player"); }
void Update() { transform.position = positions [STAIR_GlobalValues.getGlobals(index)]; }