// Use this for initialization void Start() { XDebug.LogBlue("Hello"); XDebug.LogGreen("Hello"); XDebug.LogRed("Hello"); XDebug.LogYellow("Hello"); XDebug.LogBlue("Hello", "*****"); XDebug.LogGreen("Hello", "*****"); XDebug.LogRed("Hello", "*****"); XDebug.LogYellow("Hello", "*****"); }
// Use this for initialization void Start() { XDebug.LogGreen("First Child with Matching Tag: " + this.transform.FindFirstChildWithTag("Player").name); XDebug.LogGreen("Last Child with Matching Tag: " + this.transform.FindLastChildWithTag("Player").name); GameObject[] childrenFound = this.transform.FindAllChildrenWithTag("Player"); XDebug.LogBlue("Children Found: " + childrenFound.Length, "****"); for (int i = 0; i < childrenFound.Length; i++) { XDebug.LogGreen(childrenFound[i].name); } }