You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
475 B
33 lines
475 B
using UnityEngine; |
|
using System.Collections; |
|
|
|
namespace Fungus |
|
{ |
|
public enum TargetObjectType |
|
{ |
|
Owner, |
|
Other |
|
} |
|
|
|
[System.Serializable] |
|
public class TargetObject |
|
{ |
|
public TargetObjectType targetType; |
|
public GameObject otherGameObject; |
|
|
|
public virtual string GetSummary() |
|
{ |
|
if (targetType == TargetObjectType.Owner) |
|
{ |
|
return "Owner"; |
|
} |
|
else if (otherGameObject != null) |
|
{ |
|
return otherGameObject.name; |
|
} |
|
|
|
return null; |
|
} |
|
} |
|
|
|
} |