예제 #1
0
 public static Renderer GetHullRenderer(GameObject hull) =>
 GraphicsBuilderUtils.GetRenderer(hull.GetComponentInChildren <TankVisualRootComponent>().transform.Find("body").gameObject);
예제 #2
0
 public static Renderer GetWeaponRenderer(GameObject weapon) =>
 GraphicsBuilderUtils.GetRenderer(weapon.GetComponentInChildren <WeaponVisualRootComponent>().transform.Find("weapon").gameObject);
예제 #3
0
 public static Renderer GetContainerRenderer(GameObject hull) =>
 GraphicsBuilderUtils.GetRenderer(hull.transform.Find("container").gameObject);