How do you add scripts to tiles in a tilemap? I tried making this script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
using UnityEditor;
public class RepairKitTile : Tile {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
It appeared like this in the Editor:
However, I cannot drag it into the Tile Palette. Any ideas?