Exemplo n.º 1
0
    public void RemoveConstraint(string cons_name)
    {
        CamConstraint cons = FindConstraint(cons_name);

        if (cons != null)
        {
            GameObject.Destroy(cons.gameObject);
        }
    }
Exemplo n.º 2
0
    public CamConstraint AddConstraint(string cons_name)
    {
        CamConstraint cons = CreateModifier("CamConstraints/" + cons_name) as CamConstraint;

        cons.m_Controller = this;
        if (cons != null)
        {
            m_Constraints.Add(cons);
        }
        return(cons);
    }
Exemplo n.º 3
0
 public CamConstraint FindConstraint(string cons_name)
 {
     return(m_Constraints.Find(iter => CamConstraint.MatchName(iter, cons_name)));
 }