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);
 }
Beispiel #3
0
    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);
     }
 }
Beispiel #5
0
    // 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;
    }
Beispiel #6
0
    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);
    }
Beispiel #7
0
 // Start is called before the first frame update
 void Start()
 {
     dataNode = data.Vector3(dataNode);
 }
Beispiel #8
0
 public void Add(DataVector3 data)
 {
     vector3s.Add(data);
 }
Beispiel #9
0
 public bool Has(DataVector3 data)
 {
     return(vector3s.Find(d => d.Name == data.Name) != null);
 }