forked from Syntax-Error/ArenaShooter
12 lines
323 B
C#
12 lines
323 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
public class DummyTarget : Target {
|
|
public Rigidbody rb;
|
|
public float dieShootForce = 500f;
|
|
protected override void die(Transform from) {
|
|
rb.AddForce(Vector3.Normalize(transform.position -from.position) * dieShootForce);
|
|
gameObject.layer = 7;
|
|
}
|
|
|
|
}
|