示例#1
0
文件: Body.cs 项目: Bgun67/Mech
    void Start()
    {
        skeleton = gameObject.AddComponent <Skeleton>();
        skeleton.Configure();
        gameObject.AddComponent <BalanceControl>().Configure();
        boosters = FindObjectsOfType <Booster>();
        lines    = GetComponentsInChildren <LineRenderer>();

        if (!photonView.IsMine)
        {
            GetComponentInChildren <Camera>().gameObject.SetActive(false);
        }
    }