void Start() { delta = data.Float(delta); speed = data.Float(speed); startPos = data.Vector3(startPos); startPos.Value = target.transform.position; }
// Start is called before the first frame update void Start() { player = GetComponent <CharacterController>(); dataSpeed = data.Float(dataSpeed); dataAcceleration = data.Float(dataAcceleration); dataInput = data.Vector3(dataInput); }
private void Start() { dataVec3 = data.Vector3(dataVec3); trail = GetComponent <TrailRenderer>(); cam = Camera.main; Cursor.visible = false; }
public override void Start(Data data) { if (data.Has(dataNode)) { dataNode = data.GetVector3(dataNode.Name); } else { data.Add(dataNode); } }
// Start is called before the first frame update void Start() { desiredSeparation = data.Float(desiredSeparation); neibourDistance = data.Float(neibourDistance); maxForce = data.Float(maxForce); maxSpeed = data.Float(maxSpeed); velocity = data.Vector3(velocity); acceleration = data.Vector3(acceleration); float angle = Random.Range(0, Mathf.PI * 2); velocity.Value = new Vector3(Mathf.Cos(angle), Mathf.Sin(angle)); acceleration.Value = Vector3.zero; }
public DataVector3 Vector3(DataVector3 node) { DataVector3 found = vector3s.Find(d => d.Name == node.Name); if (found != null) { return(found); } else { vector3s.Add(node); } return(node); }
// Start is called before the first frame update void Start() { dataNode = data.Vector3(dataNode); }
public void Add(DataVector3 data) { vector3s.Add(data); }
public bool Has(DataVector3 data) { return(vector3s.Find(d => d.Name == data.Name) != null); }