public override void TASK_START() { base.startTask(); if (!manager) { Start(); } if (skip) { log.log("INFO skip task "+ name, 1); return; } if (destinations) { destination = destinations.currentObject(); } position = start.transform.position; rotation = start.transform.rotation; start.transform.position = destination.transform.position; log.log("TASK_ROTATE\t" + start.name + "\t" + this.GetType().Name + "\t" + start.transform.localEulerAngles.ToString("f1"), 1); start.transform.localRotation = destination.transform.localRotation; log.log("TASK_POSITION\t" + start.name + "\t" + this.GetType().Name + "\t" + start.transform.transform.position.ToString("f1"), 1); if (swap) { destination.transform.position = position; destination.transform.localRotation = rotation; } }