C# Class Assets.Environment.ToruchHolder.Scripts.TorchHolder

Inheritance: UnityEngine.MonoBehaviour, IInteractable
Show file Open project: veselin-/Team4BabelGame

Public Properties

Property Type Description
HasTorch bool
InteractPos UnityEngine.Transform
Interactale bool
TorchInHolder UnityEngine.GameObject
TorchPrefab UnityEngine.GameObject

Public Methods

Method Description
CanThisBeInteractedWith ( GameObject pickup ) : bool
HasBeenActivated ( ) : bool
Interact ( GameObject pickup ) : GameObject
InteractPosition ( Vector3 ai ) : Vector3
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
UpdateTorch ( ) : void

Method Details

CanThisBeInteractedWith() public method

public CanThisBeInteractedWith ( GameObject pickup ) : bool
pickup UnityEngine.GameObject
return bool

HasBeenActivated() public method

public HasBeenActivated ( ) : bool
return bool

Interact() public method

public Interact ( GameObject pickup ) : GameObject
pickup UnityEngine.GameObject
return UnityEngine.GameObject

InteractPosition() public method

public InteractPosition ( Vector3 ai ) : Vector3
ai UnityEngine.Vector3
return UnityEngine.Vector3

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

HasTorch public property

public bool HasTorch
return bool

InteractPos public property

public Transform,UnityEngine InteractPos
return UnityEngine.Transform

Interactale public property

public bool Interactale
return bool

TorchInHolder public property

public GameObject,UnityEngine TorchInHolder
return UnityEngine.GameObject

TorchPrefab public property

public GameObject,UnityEngine TorchPrefab
return UnityEngine.GameObject