예제 #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();
    }