public void Activate() { int x = charMatrixPositionX; int z = charMatrixPositionZ; ButtonElement sbutton = objectMap[z, x].GetComponent <ButtonElement>(); if (sbutton != null) { sbutton.ActivateButton(); } }