15 lines
296 B
C#
15 lines
296 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class Synapse {
|
|
[SerializeReference]
|
|
public INucleus nucleus;
|
|
|
|
public float weight;
|
|
|
|
public Synapse(INucleus nucleus, float weight = 1.0f) {
|
|
this.nucleus = nucleus;
|
|
this.weight = weight;
|
|
}
|
|
} |