Search Unity

Reference to a certain class / script

Discussion in 'Scripting' started by vee41, Apr 2, 2016.

  1. vee41

    vee41

    Joined:
    Nov 14, 2013
    Posts:
    32
    Hi,

    I want to have an trait object where I can define:
    - Type of order I can give
    - Towards what kind of objects this order can be given

    My aim is to define "this unit can Attack buildings ( objects with building component)" style combinations.

    How could I approach this?

    I thought it would be nice to have variable in inspector where I could just drag scripts in and define types that way, but that doesn't seem possible.

    upload_2016-4-2_12-20-18.png