TNet 3  3.0.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
DraggedObject Class Reference

This script shows how it's possible to associate objects with players. You can see it used on draggable cubes in Example 3. More...

Inheritance diagram for DraggedObject:
TNet.TNBehaviour

Protected Member Functions

override void Awake ()
 Cache the TNObject if it exists. More...
 
- Protected Member Functions inherited from TNet.TNBehaviour
virtual void Start ()
 Create the TNObject if it hasn't been found already. More...
 
void CreateTNObject ()
 Create the TNObject. More...
 

Additional Inherited Members

- Public Member Functions inherited from TNet.TNBehaviour
Get< T > (string name)
 Get the object-specific data. More...
 
Get< T > (string name, T defVal)
 Get the object-specific data. More...
 
void Set (string name, object val)
 Set the object-specific data. More...
 
void Set (string text)
 Convenience function to set the data using a single string notation such as "key = value". More...
 
virtual void DestroySelf ()
 Destroy this game object. More...
 
void DestroySelf (float delay, bool onlyIfOwner=true)
 Destroy this game object on all connected clients and remove it from the server. More...
 
void Instantiate (int rccID, string path, bool persistent, params object[] objs)
 Convenience method mirroring TNManager.Instantiate. Instantiate a new game object in the behaviour's channel on all connected players. More...
 
void Instantiate (string funcName, string path, bool persistent, params object[] objs)
 Convenience method mirroring TNManager.Instantiate. Instantiate a new game object in the behaviour's channel on all connected players. More...
 
void RemoveAllSavedRFCs ()
 Immediately remove all saved RFCs. Use this if you want to clear all saved RFCs for any reason. More...
 
- Public Attributes inherited from TNet.TNBehaviour
bool ignoreMissingTNO = false
 
- Properties inherited from TNet.TNBehaviour
TNObject tno [get]
 

Detailed Description

This script shows how it's possible to associate objects with players. You can see it used on draggable cubes in Example 3.

Member Function Documentation

override void DraggedObject.Awake ( )
protectedvirtual

Cache the TNObject if it exists.

Reimplemented from TNet.TNBehaviour.


The documentation for this class was generated from the following file: