Hi sorry to post so many questions but i have a problem my script that i disable wont reenable any ideaS?
using UnityEngine;
using System.Collections;
public class BlockBuild : MonoBehaviour
{
private PlaceObject anotherScript;
void Start()
{
anotherScript = GetComponent<PlaceObject>();
}
void OnTriggerEnter2D (Collider2D col)
{
if(col.tag == "Block") col.renderer.material.color = Color.red;
anotherScript.enabled = false;
}
void OnTriggerExit2D (Collider2D col)
{
if(col.tag == "Block") col.renderer.material.color = Color.green;
anotherScript.enabled = true;
}
}