Tanoda
IBoxSelectable.cs
Go to the documentation of this file.
1
5
6
8{
9
10 /*
11 * Implement this interface on any MonoBehaviour that you'd like to be considered selectable.
12 */
13 public interface IBoxSelectable {
14 bool selected {
15 get;
16 set;
17 }
18
20 get;
21 set;
22 }
23
24 //This property doesn't actually need to be implemented, as this interface should already be placed on a MonoBehaviour, which will
25 //already have it. Defining it here only allows us access to the transform property by casting through the selectable interface.
26 Transform transform {
27 get;
28 }
29 }
30
31}
Credit Erdener Gonenc - @PixelEnvision.