public void OnTangibleUpdated(Tangible t) { //Debug.Log("Tangible Updated: " + t.Id); TangibleData tangible = GetTangibleWithId(t.Id); tangible.Update(t, _offset); //Debug.Log(tangible.Transform.position); }
public void OnTangibleAdded(Tangible t) { TangibleData tangible = GetTangibleWithId(t.Id); tangible.GameObject.GetComponent <SpawnTangibleCollider>().puckIndex = t.PatternId; Debug.Log(tangible.GameObject.GetComponent <SpawnTangibleCollider>().puckIndex); tangible.Update(t, _offset); }