Ejemplo n.º 1
0
 private void ResetPosition2Particle()
 {
     if (this.FXParticle == null)
     {
         Debuger.Error("FX is null", new object[0]);
         return;
     }
     if (string.IsNullOrEmpty(this.CurrentUI))
     {
         Debuger.Error("CurrentUI is null", new object[0]);
         return;
     }
     FXNodeTool.ResetPosition(this.FXParticle, this.GetParentNode(), false);
 }
Ejemplo n.º 2
0
    public void ResetPosition()
    {
        GameObject gameObject = null;

        if (this.ParentNode != null)
        {
            gameObject = this.ParentNode.get_gameObject();
        }
        else if (!string.IsNullOrEmpty(this.ParentNodeName))
        {
            gameObject = GameObject.Find(this.ParentNodeName);
        }
        if (gameObject == null)
        {
            Debuger.Error("parent is null", new object[0]);
            return;
        }
        FXNodeTool.ResetPosition(base.get_transform(), gameObject.get_transform(), this.IsRunning);
    }