18 lines
398 B
C#
18 lines
398 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
public class externalDamageProperties : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
public eventParameters.eventToCallWithGameObject eventToSetDamageOwner;
|
|||
|
|
|
|||
|
|
public GameObject currentDamageOwner;
|
|||
|
|
|
|||
|
|
public void setDamageOwner (GameObject newOwner)
|
|||
|
|
{
|
|||
|
|
currentDamageOwner = newOwner;
|
|||
|
|
|
|||
|
|
eventToSetDamageOwner.Invoke (currentDamageOwner);
|
|||
|
|
}
|
|||
|
|
}
|