-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDynamicBlock.cs
48 lines (36 loc) · 1.11 KB
/
DynamicBlock.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using UnityEngine;
using System.Collections;
namespace Uzu
{
/// <summary>
/// Config for the creation of a single dynamic block.
/// </summary>
public struct DynamicBlockCreationConfig
{
public Vector3 StartPosition { get; set; }
public Vector3 EndPosition { get; set; }
public Vector3 StartScale { get; set; }
public Vector3 EndScale { get; set; }
public Color32 StartColor { get; set; }
public Color32 EndColor { get; set; }
public float Duration { get; set; }
public DynamicBlockEvent.OnDynamicBlockDieDelegate OnDynamicBlockDie { get; set; }
public DynamicBlockEvent.DynamicBlockDieContext DynamicBlockDieContext { get; set; }
}
/// <summary>
/// Events for the lifetime of a single dynamic block.
/// </summary>
public static class DynamicBlockEvent
{
/// <summary>
/// Callback that is triggered when a particle dies.
/// </summary>
public delegate void OnDynamicBlockDieDelegate (DynamicBlockDieContext userData);
/// <summary>
/// Derive from this in order to pass in your own paremters.
/// </summary>
public class DynamicBlockDieContext
{
}
}
}