示例#1
0
 void OnEnable()
 {
     if (!BoltEntityExtensions.IsAttached(gameObject.GetComponent <BoltEntity>()))
     {
         BoltNetwork.Attach(gameObject);
     }
 }
示例#2
0
 void OnEnable()
 {
     if (!BoltEntityExtensions.IsAttached(gameObject.GetComponent <BoltEntity>()))
     {
         //BoltNetwork.Attach(gameObject);
     }
     body.velocity        = Vector3.zero;
     body.angularVelocity = Vector3.zero;
 }
示例#3
0
 void OnEnable()
 {
     if (!BoltEntityExtensions.IsAttached(gameObject.GetComponent <BoltEntity>()))
     {
         BoltNetwork.Attach(gameObject);
     }
     foreach (Transform child in transform)
     {
         child.localScale = shadow_scale;
     }
     rising = true;
 }
示例#4
0
文件: LifeTime.cs 项目: ersim53/IE
    public override void SimulateOwner()
    {
#else
    void Update()
    {
#endif
    }

    void OnEnable()
    {
        if (automatically_start)
        {
            StartCoroutine(Despawn());
        }
        if (!BoltEntityExtensions.IsAttached(gameObject.GetComponent <BoltEntity>()))
        {
            //BoltNetwork.Attach(gameObject);
        }
    }

    void OnDisable()
    {
        StopAllCoroutines();
    }